diff --git a/changelog/v2.1.2.md b/changelog/v2.1.2.md index 01685bc..7235db0 100644 --- a/changelog/v2.1.2.md +++ b/changelog/v2.1.2.md @@ -2,4 +2,3 @@ * Fixes [superfences bug](https://github.com/neatc0der/mkdocs-markmap/issues/19) * Updates distribute workflow - diff --git a/changelog/v2.1.3.md b/changelog/v2.1.3.md new file mode 100644 index 0000000..da9f572 --- /dev/null +++ b/changelog/v2.1.3.md @@ -0,0 +1,3 @@ +# v2.1.3 + +* Fixes [superfences 9.0 bug](https://github.com/neatc0der/mkdocs-markmap/issues/27) diff --git a/mkdocs_markmap/__meta__.py b/mkdocs_markmap/__meta__.py index 75315d4..6d976cc 100644 --- a/mkdocs_markmap/__meta__.py +++ b/mkdocs_markmap/__meta__.py @@ -1,6 +1,6 @@ PACKAGE_NAME = 'mkdocs_markmap' PROJECT_NAME = PACKAGE_NAME.replace('_', '-') -PROJECT_VERSION = '2.1.2' +PROJECT_VERSION = '2.1.3' OWNER = 'neatc0der' REPOSITORY_NAME = f'{OWNER}/{PROJECT_NAME}' diff --git a/mkdocs_markmap/extension.py b/mkdocs_markmap/extension.py index 6a28274..2e464cf 100644 --- a/mkdocs_markmap/extension.py +++ b/mkdocs_markmap/extension.py @@ -94,17 +94,18 @@ def extendMarkdown(self, md: Markdown, md_globals: Dict[str, str]) -> None: md.preprocessors.register(MarkmapPreprocessor(md, self.getConfigs()), 'include_markmap', 102) for extension in md.registeredExtensions: if extension.__class__.__name__ == 'SuperFencesCodeExtension': + log.info(f'superfences detected by markmap') try: from pymdownx.superfences import default_validator, fence_code_format, _formatter, _validator extension.extend_super_fences( 'markmap', partial(_formatter, class_name='language-markmap', _fmt=fence_code_format), - partial(_validator, validator=default_validator, _legacy=False) + partial(_validator, validator=default_validator) ) break except ImportError as e: - log.warning(f'detected pymdownx.superfences, but import is not working: {e}') + log.warning(f'markmap detected pymdownx.superfences, but import is not working: {e}') except Exception as e: log.error(f'unexpected error: {e}')