1
0
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:
bouncepaw 2020-12-01 15:05:57 +05:00
parent a885253d12
commit c89b0702ab
2 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ func (img *Img) checkLinks() map[string]bool {
} }
HyphaIterate(func(hyphaName string) { HyphaIterate(func(hyphaName string) {
for _, entry := range img.entries { for _, entry := range img.entries {
if hyphaName == entry.trimmedPath { if hyphaName == xclCanonicalName(img.hyphaName, entry.trimmedPath) {
m[entry.trimmedPath] = true m[entry.trimmedPath] = true
} }
} }

View File

@ -26,7 +26,7 @@ article pre.codeblock {background-color:#eee; padding:.5rem; white-space: pre-wr
.transclusion code, .transclusion .codeblock {background-color:#ddd;} .transclusion code, .transclusion .codeblock {background-color:#ddd;}
.transclusion {background-color:#eee; border-radius: .25rem; } .transclusion {background-color:#eee; border-radius: .25rem; }
.transclusion__content > *:not(.binary-container) {margin: 0.5rem; } .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: "⇐ ";} .transclusion__link::before {content: "⇐ ";}
.binary-container_with-img img, .binary-container_with-img img,