0

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

1 回答 1

0

我在任何地方都找不到它的文档,但是通过快速查看源代码, Lektor似乎使用了支持定义列表的Mistune Markdown 解析器。

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

于 2016-11-11T23:12:19.807 回答