兼容当不正常输出md 的图片格式时,对图片的转义

This commit is contained in:
2024-08-30 09:31:00 +08:00
committed by GitHub
parent 29bcb5cb39
commit e716e8fae6

View File

@@ -108,6 +108,6 @@ class dow_markdown(Plugin):
return text
def format_content(self, content):
content = re.sub(r"\!\[([^\]]+)\]\(([^)\\\s]+)\)", r"&分块&\2&分块&", content)
content = re.sub(r"\!\[([^\]]*)\]\(([^)\\\s]+)\)", r"&分块&\2&分块&", content)
content = re.sub(r"\\n", "\n", content)
return content