修复了markdown链接不翻译的问题

This commit is contained in:
xunbu
2025-07-15 20:43:33 +08:00
parent d39cc7c9f4
commit d27bdcf4f3

View File

@@ -64,7 +64,7 @@ def uris2placeholder(markdown: str, mask_dict: MaskDict):
mask_dict.set(id, match.group())
return f"<ph-{id}>"
uri_pattern = r'(!?\[.*?\])\((.*?)\)'
uri_pattern = r'(!\[.*?\])\((.*?)\)'
markdown = re.sub(uri_pattern, uri2placeholder, markdown)
return markdown