Ocelot-Social-Community / Ocelot-Social

Free and open-source social network for active citizenship.
https://ocelot.social
Other
95 stars 38 forks source link

🚀 [Feature] Enable Mathematic Formulars In the Editor #4298

Open Tirokk opened 3 years ago

Tirokk commented 3 years ago

:rocket: Feature

Enable mathematic formulas in the editor.

MathJax

A possibility is to use the MathJax node package: https://github.com/mathjax/MathJax-node

Here you can type LaTeX which will be converted in to nice HTML or SVG. No image!

User Problem

I as a user like to have mathematical formulas in my post.

Implementation

See ☝🏼

Design & Layout

None

Validation

None

Additional context

Is used on this page: http://www.nsosp.org/de/Quanten-Fluss-Theorie/Quantengravitation-der-Elementarteilchen_de.php#Pos-Lit-34

Code template is here: https://github.com/New-Soul-Of-Science-Project/New-Soul-Of-Science-Project-Web/blob/1c9fc1074f62e2472c5cf97994b8948e8237dd68/share/php/Science.php#L149

Blargian commented 3 years ago

This would be a great feature to have! I'd like to take this on next after completing my current issue. 😃

Tirokk commented 3 years ago

This issue is very interesting, but can be a bit tricky and sophisticated, because of the tip-tap editor. I would love if you care for it @Blargian and I know @Mogge as well. 😍

Maybe there is already an implementation for the tip-tap or ProseMirror editor?