This commit is contained in:
parent
1ae1622fe0
commit
dad09b6551
4
发布文章.py
4
发布文章.py
@ -24,7 +24,9 @@ with open('README.md', 'r', encoding='utf-8') as file:
|
|||||||
md_content = file.read() # 将变量名设为 md_content
|
md_content = file.read() # 将变量名设为 md_content
|
||||||
|
|
||||||
# 将 Markdown 转换为 HTML
|
# 将 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 文件中读取固件版本
|
# 从 DISTRIB_REVISION.txt 文件中读取固件版本
|
||||||
with open('DISTRIB_REVISION.txt', 'r', encoding='utf-8') as file:
|
with open('DISTRIB_REVISION.txt', 'r', encoding='utf-8') as file:
|
||||||
|
Loading…
Reference in New Issue
Block a user