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

Add a rehype plugin to use mathlive renderer #95

Closed
4 tasks done
66Leo66 opened this issue Jan 6, 2024 · 3 comments
Closed
4 tasks done

Add a rehype plugin to use mathlive renderer #95

66Leo66 opened this issue Jan 6, 2024 · 3 comments
Labels
👀 no/external This makes more sense somewhere else 👎 phase/no Post cannot or will not be acted on

Comments

@66Leo66
Copy link

66Leo66 commented Jan 6, 2024

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.

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Jan 6, 2024
@JounQin
Copy link
Member

JounQin commented Jan 6, 2024

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

@JounQin JounQin added 🙋 no/question This does not need any changes 👀 no/external This makes more sense somewhere else labels Jan 6, 2024
@github-actions github-actions bot removed 🙋 no/question This does not need any changes 👀 no/external This makes more sense somewhere else labels Jan 6, 2024
@JounQin JounQin added 🙋 no/question This does not need any changes 👀 no/external This makes more sense somewhere else 👎 phase/no Post cannot or will not be acted on labels Jan 6, 2024

This comment has been minimized.

@github-actions github-actions bot removed 🙋 no/question This does not need any changes 🤞 phase/open Post is being triaged manually labels Jan 6, 2024
@github-actions github-actions bot closed this as completed Jan 6, 2024
@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 👀 no/external This makes more sense somewhere else 👎 phase/no Post cannot or will not be acted on labels Jan 6, 2024
@JounQin JounQin added 🙋 no/question This does not need any changes 👀 no/external This makes more sense somewhere else labels Jan 6, 2024
@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🙋 no/question This does not need any changes 👀 no/external This makes more sense somewhere else 👎 phase/no Post cannot or will not be acted on labels Jan 6, 2024
@remarkjs remarkjs deleted a comment from github-actions bot Jan 6, 2024
@remarkjs remarkjs deleted a comment from github-actions bot Jan 6, 2024
@remarkjs remarkjs deleted a comment from github-actions bot Jan 6, 2024
@remarkjs remarkjs deleted a comment from github-actions bot Jan 6, 2024
@remarkjs remarkjs deleted a comment from github-actions bot Jan 6, 2024
@remarkjs remarkjs deleted a comment from github-actions bot Jan 6, 2024
@JounQin JounQin added the 👀 no/external This makes more sense somewhere else label Jan 6, 2024

This comment was marked as resolved.

@remarkjs remarkjs deleted a comment from github-actions bot Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 no/external This makes more sense somewhere else 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants