mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-13 05:50:27 +00:00
Handle relative paths in img
This commit is contained in:
parent
a885253d12
commit
c89b0702ab
@ -218,7 +218,7 @@ func (img *Img) checkLinks() map[string]bool {
|
||||
}
|
||||
HyphaIterate(func(hyphaName string) {
|
||||
for _, entry := range img.entries {
|
||||
if hyphaName == entry.trimmedPath {
|
||||
if hyphaName == xclCanonicalName(img.hyphaName, entry.trimmedPath) {
|
||||
m[entry.trimmedPath] = true
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ article pre.codeblock {background-color:#eee; padding:.5rem; white-space: pre-wr
|
||||
.transclusion code, .transclusion .codeblock {background-color:#ddd;}
|
||||
.transclusion {background-color:#eee; border-radius: .25rem; }
|
||||
.transclusion__content > *:not(.binary-container) {margin: 0.5rem; }
|
||||
.transclusion__link {display: block; text-align: right; font-style: italic; margin-top: 0.5rem; color: black; text-decoration: none;}
|
||||
.transclusion__link {display: block; text-align: right; font-style: italic; margin-top: .5rem; margin-right: .25rem; color: black; text-decoration: none;}
|
||||
.transclusion__link::before {content: "⇐ ";}
|
||||
|
||||
.binary-container_with-img img,
|
||||
|
Loading…
Reference in New Issue
Block a user