add markdown table border line to make text boundary more clear

这个提交包含在:
Junru Shen
2023-03-31 23:40:21 +08:00
父节点 b5b0f6a3ce
当前提交 7b8de7884f
共有 2 个文件被更改,包括 17 次插入4 次删除

查看文件

@@ -158,11 +158,12 @@ def markdown_convertion(txt):
"""
将Markdown格式的文本转换为HTML格式。如果包含数学公式,则先将公式转换为HTML格式。
"""
pre = '<div class="markdown-body">'
suf = '</div>'
if ('$' in txt) and ('```' not in txt):
return markdown.markdown(txt,extensions=['fenced_code','tables']) + '<br><br>' + \
markdown.markdown(convert_math(txt, splitParagraphs=False),extensions=['fenced_code','tables'])
return pre + markdown.markdown(txt,extensions=['fenced_code','tables']) + '<br><br>' + markdown.markdown(convert_math(txt, splitParagraphs=False),extensions=['fenced_code','tables']) + suf
else:
return markdown.markdown(txt,extensions=['fenced_code','tables'])
return pre + markdown.markdown(txt,extensions=['fenced_code','tables']) + suf
def format_io(self, y):