You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a filter that handles part of what the two issues above request: checkboxes and vimwiki syntax. During testing, I noticed some weird parsing behaviour of pandoc itself.
It seems that numbers or letters produce the wrong behaviour, while other characters, e.g. * do not. Also if the string in the middle is longer than one character, it works again.
Remember, _ emphasis is disabled "intraword." Pandoc's parser doesn't have a "lookback," so we store the last position of a word character in state, so we can determine if _ comes right after one. The problem is that this can break in some cases where we use parseFromString to get a fallback to avoid backtracking. One such case is reference links, and that's what's happening here, I suspect.
[This should be fixed, obviously. I'm just recording this here so I can remember what I learned in looking at the code just now.]
This touches #3051 and #863.
I'm working on a filter that handles part of what the two issues above request: checkboxes and vimwiki syntax. During testing, I noticed some weird parsing behaviour of pandoc itself.
Version:
pandoc 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9.4, skylighting 0.3.3
This has been tested on Linux 64 bit.
If you parse a 'half-checked' checkbox, the emphasis is not detected.
If you parse an empty checkbox, the emphasis is parsed correctly.
Dots also work correctly.
It seems that numbers or letters produce the wrong behaviour, while other characters, e.g.
*
do not. Also if the string in the middle is longer than one character, it works again.It also works with other styles, e.g.
The text was updated successfully, but these errors were encountered: