@@ -49,6 +49,7 @@ class Plugin(mkdocs.plugins.BasePlugin):
49
49
("remove_tag_config" , config_options .Type (dict , default = {})),
50
50
("highlight_extra_classes" , config_options .Type (str , default = "" )),
51
51
("include_requirejs" , config_options .Type (bool , default = False )),
52
+ ("custom_mathjax_url" , config_options .Type (str , default = "" )),
52
53
("toc_depth" , config_options .Type (int , default = 6 )),
53
54
)
54
55
_supported_extensions = [".ipynb" , ".py" ]
@@ -91,6 +92,7 @@ def on_pre_page(self, page, config, files):
91
92
remove_tag_config = self .config ["remove_tag_config" ]
92
93
highlight_extra_classes = self .config ["highlight_extra_classes" ]
93
94
include_requirejs = self .config ["include_requirejs" ]
95
+ custom_mathjax_url = self .config ["custom_mathjax_url" ]
94
96
toc_depth = self .config ["toc_depth" ]
95
97
96
98
if (
@@ -118,6 +120,7 @@ def new_render(self, config, files):
118
120
remove_tag_config = remove_tag_config ,
119
121
highlight_extra_classes = highlight_extra_classes ,
120
122
include_requirejs = include_requirejs ,
123
+ custom_mathjax_url = custom_mathjax_url ,
121
124
)
122
125
self .content = body
123
126
toc , title = get_nb_toc (page .file .abs_src_path , toc_depth )
0 commit comments