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

MathJax and linkedom... #105

Closed
swamidass opened this issue Feb 7, 2022 · 5 comments
Closed

MathJax and linkedom... #105

swamidass opened this issue Feb 7, 2022 · 5 comments

Comments

@swamidass
Copy link

Has anyone figured out how to use MathJax on a linkedom object?

There are some tools for applying it to a jsdom (e.g. https://github.com/pkra/mathjax-node-page/), but I'd prefer to use linkedom.

@WebReflection
Copy link
Owner

that page is archived, and so is mostly everything else linked through the mathjax-node project.
I also have other priorities these days, so I won't spend time on this but I'd be happy to consider a MR.

@WebReflection WebReflection added the enhancement New feature or request label Feb 7, 2022
@swamidass
Copy link
Author

Understood. I"m not sure if it is an enhancement though. It is possible that mathjax will work on it and i just need to learn how, or that Mathjax needs to be changed.

Thanks for your work on this project though. It's great!

@WebReflection WebReflection removed the enhancement New feature or request label Feb 8, 2022
@pkra
Copy link

pkra commented Feb 10, 2022

FYI mathjax/MathJax-src#774 exists now. It might not be what the OP was looking for but it shows that MathJax needs the same workarounds it needs for jsdom - not really unexpected and also not any more complex.

Side comment: I use linkedom for SSR with MathJax extensively but entirely without MathJax's document-level magic - I just run the "find equations" logic within linkedom and then run MathJax with its lite adaptor to render individual expression. I find this makes it much easier to control the resulting output.

@WebReflection
Copy link
Owner

@pkra awesome, thank you! It looks like there's not much to do in here then, at least until that MR lands. Closing for the time being.

@swamidass
Copy link
Author

It looks like this is what's needed here, though I haven't tested it.

mathjax/MathJax#2833 (comment)

I'll let you know if MathJax needs any unimplemented functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants