Update __init__.py
Renamed add_mathjax() to add_katex() request method. Updated to reference namespace.katex instead of namespace.mathjax.
This commit is contained in:
parent
f717c89fa5
commit
36168d37c4
1 changed files with 3 additions and 3 deletions
|
|
@ -524,8 +524,8 @@ def main(global_config, **settings):
|
|||
def add_node_order(request):
|
||||
return request.params.get("order", request.namespace.node_order)
|
||||
|
||||
def add_mathjax(request):
|
||||
return "true" if request.namespace.mathjax else "false"
|
||||
def add_katex(request):
|
||||
return "true" if request.namespace.katex else "false"
|
||||
|
||||
def add_theme_mode(request):
|
||||
"""
|
||||
|
|
@ -604,7 +604,7 @@ def main(global_config, **settings):
|
|||
config.add_request_method(add_page_size, "page_size", reify=True)
|
||||
config.add_request_method(add_page_offset, "page_offset", reify=True)
|
||||
config.add_request_method(add_node_order, "node_order", reify=True)
|
||||
config.add_request_method(add_mathjax, "mathjax", reify=True)
|
||||
config.add_request_method(add_katex, "katex", reify=True)
|
||||
config.add_request_method(add_theme_mode, "theme_mode", reify=True)
|
||||
|
||||
# all of the web application routes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue