zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.45k stars 1.93k forks source link

Is it possible to support Mathjax in trilium? #2179

Closed AsciimovLee closed 6 months ago

AsciimovLee commented 3 years ago

I found that Ckeditor5-math supports MathJax. Is it possible to add a button to select Katex or MathJax. Because I prefer MathJax to Katex.

zadam commented 3 years ago

ckeditor5-math supports MathJax and Katex, but not both at the same time. There might be some ways around it but IMO it's not worth it.

AsciimovLee commented 3 years ago

Can I pull and modify the source code to replace katex with Mathjax?

zadam commented 3 years ago

Yes, you need to pull trilium-ckeditor5 repo, do changes there, build the ckeditor.js, pull trilium repo and replace ckeditor.js and build/run that repo.

AsciimovLee commented 3 years ago

In the process of replacing KaTeX with MathJax, I encountered two rendering problems.

What is your opinion on these two issues?

meichthys commented 6 months ago

Trilium has entered maintenance mode. Future enhancements will be addressed in TrilumNext: https://github.com/TriliumNext/Notes/issues/73