diff --git a/mkdocs_print_site_plugin/plugin.py b/mkdocs_print_site_plugin/plugin.py index 70e9805..1820828 100644 --- a/mkdocs_print_site_plugin/plugin.py +++ b/mkdocs_print_site_plugin/plugin.py @@ -357,6 +357,18 @@ def on_post_build(self, config, **kwargs): .add_javascript_variables(html, self.print_page, config) ) + # Compatibility with mkdocs-drawio + # As this plugin adds renderer html for every drawio diagram + # referenced in your markdown files. This rendering happens + # in the on_post_page event, which is skipped by this plugin + # therefore we need to manual execute the drawio plugin renderer here. + if config.get("plugins", {}).get("drawio"): + html = ( + config.get("plugins", {}) + .get("drawio") + .render_drawio_diagrams(html, self.print_page) + ) + # Compatibility with https://github.com/g-provost/lightgallery-markdown # This plugin insert link hrefs with double dashes, f.e. # diff --git a/setup.py b/setup.py index 44f3624..1eb5454 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name="mkdocs-print-site-plugin", - version="2.3.6", + version="2.4.0", description="MkDocs plugin that combines all pages into one, allowing for easy export to PDF and standalone HTML.", long_description=long_description, long_description_content_type="text/markdown",