MathJax tag detection gets confused by nested markers
Open
editor
- Dominant language
- Rust
- Stars
- 30.5k
- Forks
- 3.2k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 60
Description
Currently MathJax opening/closing tags are detected via a regex, which breaks if another pair of markers are included inside. We could solve this by parsing instead, and keeping track of the number of levels of nesting.
https://forums.ankiweb.net/t/mathjax-live-preview-error-when-equation-includes-text/22265
Contributor guide
Assessment
This issue has not been assessed yet.