This commit is contained in:
2024-04-26 13:43:56 +08:00
parent 653fe79f13
commit 621941208b

View File

@@ -1,4 +1,5 @@
import os
import urllib.parse
def main():
@@ -28,7 +29,8 @@ def main():
for name, images in data.items():
markdown += f"| {name.ljust(columnWidth)} | "
for image in images:
markdown += f'<img src="../{name}/{image}" width="100" /> '
url = urllib.parse.quote(f"../{name}/{image}")
markdown += f'<img src="{url}" width="100" /> '
markdown += "|\n"
print(markdown)