latex2mathml #435
Replies: 3 comments 1 reply
-
|
I'd be happy to accept a PR that added (optional) integration! |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
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.
Beta Was this translation helpful? Give feedback.
All reactions