try fixing svg render
This commit is contained in:
parent
59d2a4624a
commit
2bb284c0e3
2
main.py
2
main.py
@ -54,7 +54,7 @@ def main() -> None:
|
|||||||
if svg is None:
|
if svg is None:
|
||||||
replace_dict[f"[[{draw}]]"] = "<h1 style='color: #ff0000'>MISSING IMAGE</h1>"
|
replace_dict[f"[[{draw}]]"] = "<h1 style='color: #ff0000'>MISSING IMAGE</h1>"
|
||||||
else:
|
else:
|
||||||
replace_dict[f"[[{draw}]]"] = f"![]({svg})"
|
replace_dict[f"[[{draw}]]"] = f"![{draw}](../{svg})"
|
||||||
|
|
||||||
for page in pages:
|
for page in pages:
|
||||||
with open(page) as f:
|
with open(page) as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user