为了账号安全,请及时绑定邮箱和手机立即绑定

为什么表格在 Python-markdown 中不起作用?

为什么表格在 Python-markdown 中不起作用?

喵喔喔 2021-09-11 17:53:11
我正在尝试在 Python-markdown 的帮助下使用 Markdown 语法将表格呈现为 HTML:https : //python-markdown.github.io/我尝试了此处提供的示例:https : //python-markdown.github.io/extensions/tables/from markdown import markdowns = """First Header  | Second Header------------- | -------------Content Cell  | Content CellContent Cell  | Content Cell"""html = markdown(s)print(html)但我得到的结果是:<p>First Header  | Second Header------------- | -------------Content Cell  | Content CellContent Cell  | Content Cell</p>怎么了?
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 246 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信