latex2mathml #435
Tsai002
started this conversation in
Feature requests
Replies: 3 comments 1 reply
|
I'd be happy to accept a PR that added (optional) integration! |
0 replies
|
In my private project, I just convert let input = latex2mathml::replace(input)?;
if input.contains("<math") && input.contains("</math>") {
// skip the math part && convert to md
} else {
// convert to md
}That works, but looks awful. |
0 replies
|
Maybe it would be possible to make Math rendering pluggable into comrak, so for example one could use different renderers. It could be possible to for example use https://docs.rs/pulldown-latex/latest/pulldown_latex/ by passing it into comrak, maybe as a callback (?) If it was pluggable, then it would allow users to swap renderers and even use different syntax for the math easily such as Typst notation potentially in the future. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
https://docs.rs/crate/latex2mathml/ is very easy to use. And cmark-syntax has integrated it https://github.com/grego/cmark-syntax/blob/057ed25507735aa013b55a0650845da5ff2c368e/src/lib.rs#L74, I hope comrak can support it.
All reactions