remarkjs / remark-math

remark and rehype plugins to support math
https://remark.js.org
MIT License
372 stars 54 forks source link

Add a rehype plugin to use mathlive renderer #95

Closed 66Leo66 closed 9 months ago

66Leo66 commented 9 months ago

Initial checklist

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.

JounQin commented 9 months ago

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

github-actions[bot] commented 9 months ago

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

github-actions[bot] commented 9 months ago

Hi team! Could you describe why this has been marked as external?

Thanks, — bb