Add a rehype plugin to use mathlive renderer
66Leo66 opened this issue · 3 comments
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Problem
I'd like to use https://github.com/arnog/mathlive to generate markups for math formula.
Solution
Add a new package rehype-mathlive
. Mathlive has decent SSR support and requires no browser-side dependency but only a css. It has nice support for latex commands and also mhchem out-of-the-box. Also I think it's based on custom fonts so it looks nice and can be easily sclaed up and down for example.
Alternatives
Given that rehype-katex
is implemented in a single file, I think intergating mathlive won't be too difficult. If acceptable, I could try to do it on my own and send a PR, though I'm not so familiar with remark/rehype.
You can write your own package rehype-mathlive
first in your own repository to judge whether it would work as expected.
There is no need to add it as a core module into remark-math
at this time.
See also https://github.com/remarkjs/remark/blob/main/doc/plugins.md#list-of-plugins
Hi! Thanks for reaching out! Because we treat issues as our backlog, we close issues that are questions since they don’t represent a task to be completed.
See our support docs for how and where to ask questions.
Thanks,
— bb
Hi team! Could you describe why this has been marked as external?
Thanks,
— bb