Migrate from MathJax to KaTeX #31

Open
Groupr wants to merge 17 commits from Katex_Swap into main

17 commits

Author SHA1 Message Date
1ef1c8d621 Update 7ad8508e50de_rename_mathjax_to_katex.py 2025-11-27 23:20:57 +00:00
30a62b8721 Update 7ad8508e50de_rename_mathjax_to_katex.py 2025-11-27 16:28:51 +00:00
a7e39520a7 Update file notify.py 2025-11-27 16:14:01 +00:00
9989caf95f Update 7ad8508e50de_rename_mathjax_to_katex.py 2025-11-27 16:10:30 +00:00
f408487224 Upload New File 2025-11-11 04:40:41 +00:00
f5ab803fd3 Update test_models.py
Updated all test methods to use namespace.katex instead of namespace.mathjax in test_namespace_production_custom_settings(),

  test_namespace_development_custom_settings(), and test_namespace_simulate_expired_subscription().
2025-11-11 04:38:23 +00:00
0343456e9a Update test_render.py
Renamed test_mathjax_enabled_and_disabled() to test_katex_enabled_and_disabled(). 

Updated test to check cleaner.katex property instead of cleaner.mathjax. 

Removed assertions about MathJax script tags.
2025-11-11 04:36:16 +00:00
c812836ab9 Update authenticated.py 2025-11-11 04:29:54 +00:00
734ac9c838 Update namespace.py
Renamed mathjax column to katex in Column definition and PROTECTED_ATTRIBUTES dict.
2025-11-11 04:24:44 +00:00
e9233180cf Update namespace-settings.j2
Renamed checkbox from mathjax-checkbox to katex-checkbox. 

Updated label to  "Enable KaTeX" with link to katex.org. 

Changed description from "could introduce slowness" to "fast math rendering".
2025-11-11 04:21:06 +00:00
17f54d6705 Update sanitize_html.py
Updated docstring to remove MathJax-specific examples. 

Cleaned up comments about tag whitelisting.
2025-11-11 04:19:34 +00:00
f94d401bf2 Update render.py
Simplified remarkbox_tag_acl() - removed MathJax script tag whitelisting logic. 

Updated cleaner to use namespace.katex. 

Removed mdx_math extension from markdown rendering (KaTeX handles delimiters client-side).
2025-11-11 04:18:22 +00:00
c7d1646824 Update create.j2
Updated textarea onkeyup handler to pass katex={{ request.katex }} instead of mathjax={{ request.mathjax }} in thread creation form.
2025-11-11 04:15:47 +00:00
864632b779 Update forms.j2
Updated textarea onkeyup handlers to pass katex={{ request.katex }} instead of mathjax={{ request.mathjax }} in both reply and edit forms.
2025-11-11 04:14:17 +00:00
b07a2ebe88 Update custom.js
Updated previewAjax() and sendPreview() functions to use katex parameter instead of mathjax. 

Replaced MathJax.Hub.Queue() call with KaTeXrenderMathInElement() for live preview rendering.
2025-11-11 04:12:51 +00:00
ca93bd16ae Update javascript-includes.j2
Replaced MathJax CDN with KaTeX CDN. Now loads KaTeX CSS, JS, and
auto-render extension from jsdelivr. 
Added auto-render configuration with
$$ and $ delimiters.
2025-11-11 04:10:20 +00:00
36168d37c4 Update __init__.py
Renamed add_mathjax() to add_katex() request method. 
Updated to reference namespace.katex instead of namespace.mathjax.
2025-11-11 04:08:32 +00:00