Skip to content

Commit dff5d6a

Browse files
authored
Merge pull request #29 from neatc0der/release/v2.1.3
Release/v2.1.3
2 parents 05c8fe5 + b03dafc commit dff5d6a

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

changelog/v2.1.2.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22

33
* Fixes [superfences bug](https://github.com/neatc0der/mkdocs-markmap/issues/19)
44
* Updates distribute workflow
5-

changelog/v2.1.3.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# v2.1.3
2+
3+
* Fixes [superfences 9.0 bug](https://github.com/neatc0der/mkdocs-markmap/issues/27)

mkdocs_markmap/__meta__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PACKAGE_NAME = 'mkdocs_markmap'
22
PROJECT_NAME = PACKAGE_NAME.replace('_', '-')
3-
PROJECT_VERSION = '2.1.2'
3+
PROJECT_VERSION = '2.1.3'
44

55
OWNER = 'neatc0der'
66
REPOSITORY_NAME = f'{OWNER}/{PROJECT_NAME}'

mkdocs_markmap/extension.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,18 @@ def extendMarkdown(self, md: Markdown, md_globals: Dict[str, str]) -> None:
9494
md.preprocessors.register(MarkmapPreprocessor(md, self.getConfigs()), 'include_markmap', 102)
9595
for extension in md.registeredExtensions:
9696
if extension.__class__.__name__ == 'SuperFencesCodeExtension':
97+
log.info(f'superfences detected by markmap')
9798
try:
9899
from pymdownx.superfences import default_validator, fence_code_format, _formatter, _validator
99100
extension.extend_super_fences(
100101
'markmap',
101102
partial(_formatter, class_name='language-markmap', _fmt=fence_code_format),
102-
partial(_validator, validator=default_validator, _legacy=False)
103+
partial(_validator, validator=default_validator)
103104
)
104105
break
105106

106107
except ImportError as e:
107-
log.warning(f'detected pymdownx.superfences, but import is not working: {e}')
108+
log.warning(f'markmap detected pymdownx.superfences, but import is not working: {e}')
108109

109110
except Exception as e:
110111
log.error(f'unexpected error: {e}')

0 commit comments

Comments
 (0)