修复了markdown链接不翻译的问题
This commit is contained in:
@@ -64,7 +64,7 @@ def uris2placeholder(markdown: str, mask_dict: MaskDict):
|
|||||||
mask_dict.set(id, match.group())
|
mask_dict.set(id, match.group())
|
||||||
return f"<ph-{id}>"
|
return f"<ph-{id}>"
|
||||||
|
|
||||||
uri_pattern = r'(!?\[.*?\])\((.*?)\)'
|
uri_pattern = r'(!\[.*?\])\((.*?)\)'
|
||||||
markdown = re.sub(uri_pattern, uri2placeholder, markdown)
|
markdown = re.sub(uri_pattern, uri2placeholder, markdown)
|
||||||
return markdown
|
return markdown
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user