Skip to content

Commit

Permalink
Reintroduce custom_mathjax_url plugin arg (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
divya-layerhealth authored Oct 15, 2024
1 parent a52e908 commit d50814f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mkdocs_jupyter/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Plugin(mkdocs.plugins.BasePlugin):
("include_requirejs", config_options.Type(bool, default=False)),
("toc_depth", config_options.Type(int, default=6)),
("data_files", config_options.Type(dict, default={})),
("custom_mathjax_url", config_options.Type(str, default="")),
)
_supported_extensions = [".ipynb", ".py", ".md"]

Expand Down Expand Up @@ -106,6 +107,7 @@ def on_pre_page(self, page, config, files):
highlight_extra_classes = self.config["highlight_extra_classes"]
include_requirejs = self.config["include_requirejs"]
toc_depth = self.config["toc_depth"]
custom_mathjax_url = self.config["custom_mathjax_url"]

if self.config["execute_ignore"] and len(self.config["execute_ignore"]) > 0:
for ignore_pattern in self.config["execute_ignore"]:
Expand All @@ -129,6 +131,7 @@ def new_render(self, config, files):
remove_tag_config=remove_tag_config,
highlight_extra_classes=highlight_extra_classes,
include_requirejs=include_requirejs,
custom_mathjax_url=custom_mathjax_url,
)
self.content = body
toc, title = get_nb_toc(page.file.abs_src_path, toc_depth)
Expand Down

0 comments on commit d50814f

Please sign in to comment.