From 36168d37c495d884f5eec0b0242f91a6fc11197a Mon Sep 17 00:00:00 2001 From: Groupr Date: Tue, 11 Nov 2025 04:08:32 +0000 Subject: [PATCH] Update __init__.py Renamed add_mathjax() to add_katex() request method. Updated to reference namespace.katex instead of namespace.mathjax. --- remarkbox/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/remarkbox/__init__.py b/remarkbox/__init__.py index 863097f..a005a2a 100644 --- a/remarkbox/__init__.py +++ b/remarkbox/__init__.py @@ -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.