update generate_image_links.py to generate links without "!"

This commit is contained in:
Billy Wang
2025-09-28 11:04:12 +08:00
parent b22ab124b7
commit f5ef16d2d3
2 changed files with 218 additions and 218 deletions

View File

@@ -49,7 +49,7 @@ def generate_markdown_links(image_files, base_url="https://assets.openterface.co
alt_name = str(webp_path).replace('/', '-').replace('\\', '-').replace('.webp', '')
# Generate markdown link
markdown_link = f"![{alt_name}]({full_url})"
markdown_link = f"[{alt_name}]({full_url})"
markdown_lines.append(markdown_link)
return markdown_lines
@@ -67,7 +67,7 @@ def generate_svg_markdown_links(svg_files, base_url="https://assets.openterface.
alt_name = str(svg_path).replace('/', '-').replace('\\', '-').replace('.svg', '')
# Generate markdown link
markdown_link = f"![{alt_name}]({full_url})"
markdown_link = f"[{alt_name}]({full_url})"
markdown_lines.append(markdown_link)
return markdown_lines

File diff suppressed because it is too large Load Diff