ankitects / ankitects/anki

MathJax tag detection gets confused by nested markers

Offen
#2,012 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
editor
Vorherrschende Sprache
Rust
Sterne
30.5k
Forks
3.2k
Ø Merge
2 T. 8 Std.
Gemergte PRs (30 T.)
60

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.