Skip to content

Commit

Permalink
Fix when markdown extensions is set to None
Browse files Browse the repository at this point in the history
Fixes #18
  • Loading branch information
oprypin committed Apr 21, 2023
1 parent 46eba2d commit 0825f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs_literate_nav/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def markdown_to_nav(self, roots: tuple[str, ...] = (".",)) -> Nav:
nav_file_name, md = dir_nav
markdown_config = dict(
self._markdown_config,
extensions=[ext, *self._markdown_config.get("extensions", ())],
extensions=[ext, *(self._markdown_config.get("extensions") or ())],
)
markdown.markdown(md, **markdown_config)
if ext.nav is not None:
Expand Down

0 comments on commit 0825f8a

Please sign in to comment.