ankitects / ankitects/anki

MathJax tag detection gets confused by nested markers

Aperta
#2,012 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
editor
Lingua principale
Rust
Stelle
30.5k
Fork
3.2k
Merge medio
2g 8h
PR unite (30g)
60

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.