同时兼容一些链接性质的图片或者视频

This commit is contained in:
2024-08-30 09:35:47 +08:00
committed by GitHub
parent e716e8fae6
commit f63fb499b8

View File

@@ -108,6 +108,6 @@ class dow_markdown(Plugin):
return text return text
def format_content(self, content): 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) content = re.sub(r"\\n", "\n", content)
return content return content