我尝试在contents.lr文件中插入一个定义列表。
表工作正常,但定义列表处理不正确。
示例取自https://pythonhosted.org/Markdown/extensions/index.html
Apple
: Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.
Orange
: The fruit of an evergreen tree of the genus Citrus.
直接使用markdown
渲染字符串:
markdown.markdown(s, extensions=['markdown.extensions.def_list'])