@@ -41,7 +41,7 @@ def get_anchor(self, data: DocItem) -> str:
4141 return data .abs_id
4242
4343 def update_env (self , md : Markdown , config : dict ) -> None :
44- md = Markdown ( extensions = config [ "mdx" ], extension_configs = config [ "mdx_configs" ] )
44+ super (). update_env ( md , config )
4545 self ._md = md
4646
4747 self ._pymdownx_hl = None
@@ -55,8 +55,6 @@ def update_env(self, md: Markdown, config: dict) -> None:
5555 del md .preprocessors ["html_block" ]
5656 del md .inlinePatterns ["html" ]
5757
58- base .ShiftHeadingsExtension ().extendMarkdown (md )
59- base .PrefixIdsExtension ().extendMarkdown (md )
6058 md .treeprocessors .register (_RefInsertingTreeprocessor (md ), "mkdocstrings_crystal_xref" , 12 )
6159
6260 self .env .trim_blocks = True
@@ -92,9 +90,7 @@ def do_reference(self, path: Union[str, DocPath], text: Optional[str] = None) ->
9290
9391 def do_convert_markdown (self , text : str , context : DocItem , heading_level : int , html_id : str ):
9492 self ._md .treeprocessors ["mkdocstrings_crystal_xref" ].context = context
95- return base .do_convert_markdown (
96- self ._md , text , heading_level = heading_level , html_id = html_id
97- )
93+ return super ().do_convert_markdown (text , heading_level = heading_level , html_id = html_id )
9894
9995 def _monkeypatch_highlight_function (self , default_lang : str ):
10096 """Changes 'pymdownx.highlight' extension to use this lang by default."""
0 commit comments