test
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
|
import urllib.parse
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@@ -28,7 +29,8 @@ def main():
|
|||||||
for name, images in data.items():
|
for name, images in data.items():
|
||||||
markdown += f"| {name.ljust(columnWidth)} | "
|
markdown += f"| {name.ljust(columnWidth)} | "
|
||||||
for image in images:
|
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"
|
markdown += "|\n"
|
||||||
|
|
||||||
print(markdown)
|
print(markdown)
|
||||||
|
|||||||
Reference in New Issue
Block a user