修复了markdown链接不翻译的问题
This commit is contained in:
1 parent
d39cc7c9f4
commit
d27bdcf4f3
1 file changed
+1
-1
@@ -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