|
17 | 17 | MKDOCSTRINGS_HEADING_AUTOREFS_PREFIX, |
18 | 18 | PYMD_ABBREVIATIONS_PREFIX, |
19 | 19 | PYMD_SNIPPET_PREFIX, |
| 20 | + PYTHON_MARKDOWN_ATTR_LIST_PREFIX, |
20 | 21 | material_admon_plugin, |
21 | 22 | material_content_tabs_plugin, |
22 | 23 | mkdocstrings_autorefs_plugin, |
23 | 24 | mkdocstrings_crossreference_plugin, |
24 | 25 | pymd_abbreviations_plugin, |
25 | 26 | pymd_admon_plugin, |
26 | 27 | pymd_snippet_plugin, |
| 28 | + python_markdown_attr_list_plugin, |
27 | 29 | ) |
28 | 30 |
|
29 | 31 | if TYPE_CHECKING: |
@@ -79,8 +81,9 @@ def update_mdit(mdit: MarkdownIt) -> None: |
79 | 81 | mdit.use(material_content_tabs_plugin) |
80 | 82 | mdit.use(mkdocstrings_autorefs_plugin) |
81 | 83 | mdit.use(pymd_abbreviations_plugin) |
82 | | - mdit.use(pymd_snippet_plugin) |
83 | 84 | mdit.use(pymd_admon_plugin) |
| 85 | + mdit.use(pymd_snippet_plugin) |
| 86 | + mdit.use(python_markdown_attr_list_plugin) |
84 | 87 |
|
85 | 88 | if cli_is_ignore_missing_references(mdit.options): |
86 | 89 | mdit.use(mkdocstrings_crossreference_plugin) |
@@ -187,10 +190,11 @@ def add_extra_admon_newline(node: RenderTreeNode, context: RenderContext) -> str |
187 | 190 | "content_tab_mkdocs": add_extra_admon_newline, |
188 | 191 | "content_tab_mkdocs_title": render_admon_title, |
189 | 192 | MKDOCSTRINGS_AUTOREFS_PREFIX: _render_meta_content, |
190 | | - MKDOCSTRINGS_HEADING_AUTOREFS_PREFIX: _render_heading_autoref, |
191 | 193 | MKDOCSTRINGS_CROSSREFERENCE_PREFIX: _render_cross_reference, |
| 194 | + MKDOCSTRINGS_HEADING_AUTOREFS_PREFIX: _render_heading_autoref, |
192 | 195 | PYMD_ABBREVIATIONS_PREFIX: _render_inline_content, |
193 | 196 | PYMD_SNIPPET_PREFIX: _render_inline_content, |
| 197 | + PYTHON_MARKDOWN_ATTR_LIST_PREFIX: _render_meta_content, |
194 | 198 | } |
195 | 199 |
|
196 | 200 |
|
|
0 commit comments