rust-lang / mdBook

Create book from markdown files. Like Gitbook but implemented in Rust
https://rust-lang.github.io/mdBook/
Mozilla Public License 2.0
17.9k stars 1.62k forks source link

Future Math support in pulldown-cmark #2222

Open Martin1887 opened 11 months ago

Martin1887 commented 11 months ago

Problem

The support of Math in pulldown-cmark is being discussed in https://github.com/raphlinus/pulldown-cmark/pull/733, and it is very relevant to mdBook, so this issue is to create awareness and link both projects.

Proposed Solution

No response

Notes

No response

ehuss commented 11 months ago

Thanks for the heads up! I don't really have much feedback other than I would like to make sure the solution works with MathJax. Over at the conversation at https://github.com/raphlinus/pulldown-cmark/pull/622#issuecomment-1445159393, I mentioned that I was unable to get MathJax to work with that particular PR's implementation. It would be helpful to have examples that show how it can work with MathJax for both inline and block math.

Martin1887 commented 11 months ago

This will be taken into account for the final implementation, thanks. Anyway, Math support will be under a flag, so not enabling the flag the behavior will be the same until now.