ankitects / ankitects/anki

MathJax tag detection gets confused by nested markers

Open
#2,012 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.