Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maths support #3251

wants to merge 21 commits into
base: develop


Copy link

commented Jul 27, 2019

Linked to vector-im/riot-web#10428

Added support for mathematics rendering using KaTeX (see vector-im/riot-web#1945 (comment)).

Edit: Now enabling maths mode replaces anything wrapped in dollar signs with the same thing wrapped in <matrix-math> (or <matrix-math-display>) tags in the formatted_body. Enabling KaTeX rendering (as an account option) then uses KaTeX to render anything between such tags.

This is an improvement over the previous commit, where the distinction between math mode and arbitrary org.matrix.custom.html content was non-existent. Now things really can be changed to fit any proposals very easily (fallbacks, KaTeX vs. MathJax, delimiter choices, etc. etc.).

The only remaining 'bug' is that I haven't yet implemented per-room KaTeX rendering settings.

Signed-off-by: Tim Hosgood


This comment has been minimized.

Copy link

commented Jul 27, 2019

closed while refactoring code to be more in keeping with proposals

res/img/math.svg Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.