try fixing svg render

This commit is contained in:
Surferlul 2023-10-10 05:48:40 +02:00
parent 59d2a4624a
commit 2bb284c0e3

View File

@ -54,7 +54,7 @@ def main() -> None:
if svg is None:
replace_dict[f"[[{draw}]]"] = "<h1 style='color: #ff0000'>MISSING IMAGE</h1>"
else:
replace_dict[f"[[{draw}]]"] = f"![]({svg})"
replace_dict[f"[[{draw}]]"] = f"![{draw}](../{svg})"
for page in pages:
with open(page) as f: