Parsing the delimiters isn’t the problem?
It’s that the QuoteMark are not in the final syntaxtree inside the math environment, whereas they are inside the Fencedcode cause it adds the markers from line.markers but that’s not public API.
It’s working with and without using that internal API, but when I don’t use it, the quote marks inside the math environment don’t end up in the tree.
Maybe skipping the focus on the math implementation, how would I parse FencedCode the same way with composite markers that are skipped for the element CodeText and are put in front of it, without accessing line.markers.
As without i currently get (dont expect you to debug it)
Blockquote: (1, 19):
QuoteMark: (1, 2):
DollarDisplayMath: (2, 19):
Dollar: (2, 4):
DisplayMath: (6, 11):
DisplayMath: (12, 16):
Dollar: (17, 19):
Blockquote: (21, 48):
QuoteMark: (21, 22):
FencedCode: (22, 48):
CodeMark: (22, 25):
QuoteMark: (26, 27):
CodeText: (28, 33):
QuoteMark: (33, 34):
CodeText: (35, 43):
QuoteMark: (44, 45):
CodeMark: (45, 48):
For the text
>$$
>a+bj
>c+d
>$$
>~~~
> text
> mor text
>~~~
With
Blockquote: (1, 19):
QuoteMark: (1, 2):
DollarDisplayMath: (2, 19):
Dollar: (2, 4):
QuoteMark: (5, 6):
DisplayMath: (6, 11):
QuoteMark: (11, 12):
DisplayMath: (12, 16):
QuoteMark: (16, 17):
Dollar: (17, 19):
Blockquote: (21, 48):
QuoteMark: (21, 22):
FencedCode: (22, 48):
CodeMark: (22, 25):
QuoteMark: (26, 27):
CodeText: (28, 33):
QuoteMark: (33, 34):
CodeText: (35, 43):
QuoteMark: (44, 45):
CodeMark: (45, 48):