Extra
概观
Python Markdown有一个额外的扩展,提供类似于PHP Markdown Extra的功能。 PyMdown扩展旨在提供不仅新功能,而且改善Python Markdown现有功能集中的行为。 其中一些事情可能不一致。
Python Markdown的smartstrong和fenced_code不兼容PyMdown扩展的betterem和superfences。
,smartstong不应该与betterem同时加载,superfences不应该与fenced_code同时加载
因此,使用Python Markdown的extra和PyMdown Extensions superfences和betterem是不可能的,为了减少这个问题,PyMdown扩展提供了自己的extra实现。
PyMdown扩展extra就像Python Markdown的额外功能,除了smartstrong被betterem替代,fenced_code被superfences替代。
所有其他功能和扩展应该是相同的,因为我们使用相同的。
这个扩展是一个方便的扩展,它目前不提供其他附加功能。
But remember don't use pymdownx.extra while also using markdown.extensions.extra!
提醒
请记住阅读使用说明,以获取使用此扩展名时可能相关的信息!
扩展:
| 扩展 | 名称 |
|---|---|
| BetterEm | pymdownx.betterem |
| SuperFences | pymdownx.superfences |
| Footnotes | markdown.extensions.footnotes |
| Attribute Lists | markdown.extensions.attr_list |
| Definition Lists | markdown.extensions.def_list |
| Tables | markdown.extensions.tables |
| Abbreviations | markdown.extensions.abbr |
| ExtraRawHTML | pymdownx.extrarawhtml |
选项
如果您希望通过此扩展名配置各个扩展, 您可以通过将该子扩展的设置置于与子扩展名称相同的设置值下进行配置。
extension_configs = { 'pymdownx.extra': { 'markdown.extensions.footnotes': { 'BACKLINK_TEXT': 'link' } } }