Skip to content

Commit

Permalink
Merge pull request #40 from neatc0der/fix/extendMarkdown
Browse files Browse the repository at this point in the history
Fix/extendMarkdown
  • Loading branch information
neatc0der authored Jul 18, 2022
2 parents 6fbc63c + c9d70a4 commit b31563c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This is a plugin and an extension for [mkdocs](https://github.com/mkdocs/mkdocs/
This plugin was tested with, but is not limited to:

* Python 3.9
* mkdocs 1.1
* mkdocs 1.3

## Quickstart

Expand Down Expand Up @@ -112,7 +112,7 @@ extra_javascript:
- js/markmap-view.js
```
### Usage of proxy is prevent download of javascript files
### Usage of proxy is preventing download of javascript files
Usually proxies should be supported by `requests`, which is used for downloading all required javascript files. If the issue remains, try downloading the files yourself and store them accordingly (see [Static javascript files not working](#static-javascript-files-not-working))
Expand Down
3 changes: 3 additions & 0 deletions changelog/v2.2.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# v2.2.2

* Fixes [API issue with Markdown 3.4+](https://github.com/neatc0der/mkdocs-markmap/issues/39)
2 changes: 1 addition & 1 deletion mkdocs_markmap/__meta__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PACKAGE_NAME: str = 'mkdocs_markmap'
PROJECT_NAME: str = PACKAGE_NAME.replace('_', '-')
PROJECT_VERSION: str = '2.2.1'
PROJECT_VERSION: str = '2.2.2'

OWNER: str = 'neatc0der'
REPOSITORY_NAME: str = f'{OWNER}/{PROJECT_NAME}'
Expand Down
2 changes: 1 addition & 1 deletion mkdocs_markmap/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(self, **configs: Dict[str, str]):
for key, value in configs.items():
self.setConfig(key, value)

def extendMarkdown(self, md: Markdown, md_globals: Dict[str, str]) -> None:
def extendMarkdown(self, md: Markdown) -> None:
md.preprocessors.register(MarkmapPreprocessor(md, self.getConfigs()), 'include_markmap', 102)
for extension in md.registeredExtensions:
if extension.__class__.__name__ == 'SuperFencesCodeExtension':
Expand Down
5 changes: 3 additions & 2 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
mkdocs>=1.1,<2
mkdocs>=1.3,<2
attrs==20.3.0
beautifulsoup4>=4.6.3
requests==2.25.1
requests<3

0 comments on commit b31563c

Please sign in to comment.