Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

MathJax #321

Closed
sigilante opened this issue Jan 27, 2021 · 3 comments
Closed

MathJax #321

sigilante opened this issue Jan 27, 2021 · 3 comments
Labels
feature Incoming feature requests.

Comments

@sigilante
Copy link

Problem

I would like to see mathematical rendering available in Landscape.

Proposed Solution

MathJax or a similar tool can provide this at a fairly lightweight cost.

The initial style include is simple:

<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
</script>

There's some question of when the injected text gets processed by MathJax: i.e., if I edit the page using Inspect then MathJax doesn't work, but if I edit the page before loading then it gets processed properly. (I'm not JS-literate enough to figure out the injection timing. I am willing to contribute work towards this feature.) I imagine this is probably only a bit of work, then verifying that it doesn't erroneously eat anything that Landscape uses.

@tylershuster
Copy link
Contributor

@tylershuster
Copy link
Contributor

tloncorp/indigo-react#66

@matildepark matildepark added feature Incoming feature requests. and removed unreviewed labels Jan 27, 2021
@Fang-
Copy link
Member

Fang- commented Dec 9, 2021

Wontfix, sorry!

(There was a PR for this at one point, but it blows up bundle size and is just Not Worth It in general. This is a good use case for dynamically loaded components though.)

@Fang- Fang- closed this as completed Dec 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Incoming feature requests.
Projects
None yet
Development

No branches or pull requests

4 participants