test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user