`markdown.extensions.def_list`无法正确呈现

时间:2016-11-10 16:10:45

标签: markdown lektor

我尝试在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'])

1 个答案:

答案 0 :(得分:0)

我无法在任何地方找到它,但是快速查看源代码,Lektor使用appears Markdown解析器Mistune支持定义列表。

我建议向Lektor提交错误报告,要求他们记录他们支持的Markdown功能以及如何更改它们。