Mastodon/Mathjax: Difference between revisions

870 bytes added ,  02:08, 1 December 2023
no edit summary
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Project
|Description=Borrowing mathjax from mathstodon :)
|Part Of=Mastdon/Hacking
|Contributors=Jonny Saunders
|Has Git Repository=https://github.com/NeuromatchAcademy/mastodon
|Completion Status=Completed
|Active Status=Completed
|Approval Status=Approved
}}
Up to: [[Part Of::Mastodon/Hacking]]
Up to: [[Part Of::Mastodon/Hacking]]


== Description ==
== Description ==
Line 8: Line 19:


* See: [[References Post::https://mathstodon.xyz/@albertcardona/109440700541878151]]
* See: [[References Post::https://mathstodon.xyz/@albertcardona/109440700541878151]]
== Usage ==
* Anything within a tag like <code>\( x = y \)</code> for inline equations or <code>\[ x = y \]</code> for lined equations should be rendered by mathjax!
* There is also an equation insert button on the compose box below the emoji bar!


== Code ==
== Code ==
Line 14: Line 30:
** Original: [[Has Pull Request::https://github.com/NeuromatchAcademy/mastodon/pull/2]]
** Original: [[Has Pull Request::https://github.com/NeuromatchAcademy/mastodon/pull/2]]
** (Supercedes original) Pulled into local <code>mathstodon-4.0.2</code> branch, removing font before pulling to feature branch: [[Has Pull Request::https://github.com/NeuromatchAcademy/mastodon/pull/3]]
** (Supercedes original) Pulled into local <code>mathstodon-4.0.2</code> branch, removing font before pulling to feature branch: [[Has Pull Request::https://github.com/NeuromatchAcademy/mastodon/pull/3]]
** Pulling into dev: [[Has Pull Request::https://github.com/NeuromatchAcademy/mastodon/pull/6]]
* '''Feature Branch:''' [[Has Branch::https://github.com/NeuromatchAcademy/mastodon/tree/feature-mathtex]]
* '''Feature Branch:''' [[Has Branch::https://github.com/NeuromatchAcademy/mastodon/tree/feature-mathtex]]


Line 53: Line 70:
https://www.howtogeek.com/devops/how-to-apply-git-commit-diffs-to-different-files/
https://www.howtogeek.com/devops/how-to-apply-git-commit-diffs-to-different-files/


== Patches ==
* Fix problems with CSP
** Issue: [[Has Issue::https://github.com/NeuromatchAcademy/mastodon/issues/32]]
** Pull Request: [[Has Pull Request::https://github.com/NeuromatchAcademy/mastodon/pull/33]]




== TODO ==
== TODO ==


* Pare down the pull request to just select the mathjax parts
<markdown>
* Actually make the merge work
- [x] Pare down the pull request to just select the mathjax parts
 
- [x] Actually make the merge work
- [x] Merge it!
</markdown>
== References ==
== References ==