diff --git a/发布文章.py b/发布文章.py index eae4835..788e1aa 100644 --- a/发布文章.py +++ b/发布文章.py @@ -24,7 +24,9 @@ with open('README.md', 'r', encoding='utf-8') as file: md_content = file.read() # 将变量名设为 md_content # 将 Markdown 转换为 HTML -new_content = markdown.markdown(md_content) +#new_content = markdown.markdown(md_content) +# 将 Markdown 转换为 HTML,并启用表格支持 +new_content = markdown.markdown(md_content, extensions=['markdown.extensions.extra']) # 从 DISTRIB_REVISION.txt 文件中读取固件版本 with open('DISTRIB_REVISION.txt', 'r', encoding='utf-8') as file: