同时兼容一些链接性质的图片或者视频
This commit is contained in:
2
dowmd.py
2
dowmd.py
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user