add support for mkdocs-material title mode by bilal-fazlani · Pull Request #33 · rnorth/mkdocs-codeinclude-plugin

Expand Up @@ -57,7 +57,7 @@ class CodeIncludePlugin(BasePlugin): ( "title_mode", mkdocs.config.config_options.Choice( choices=["none", "legacy_pymdownx.superfences", "pymdownx.tabbed"], choices=["none", "legacy_pymdownx.superfences", "pymdownx.tabbed", "mkdocs-material"], default="pymdownx.tabbed", ), ), Expand Down Expand Up @@ -171,6 +171,15 @@ def get_substitute(self, page, title, filename, lines, block, inside_block): ```
""" elif ( self.config.get("title_mode") == "mkdocs-material" ): return f""" ```{header} title="{title}" {dedented} ```
""" else: return f""" ```{header} Expand Down