-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Markdown Reader] Fails to parse citation immediately after an opening parenthesis #5099
Labels
Comments
lierdakil
changed the title
[Markdown Reader] Fails to parse citation after an opening parenthesis
[Markdown Reader] Fails to parse citation immediately after an opening parenthesis
Nov 25, 2018
It's because we added updateStrPos to 'symbol' in
commit 9b0bd4e.
This should probably be reverted, but I can't recall
now why I made the change.
|
OK, now I do remember. Here's what happens if that commit is reverted:
So this has to do with #4635. |
I agree that something should be done to fix this, but we have to avoid breaking #4635. |
Perhaps adding a field recording the kind of last character parsed (i.e. symbol/alphanumeric) to the state and checking for that would suffice? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is prompted by lierdakil/pandoc-crossref#210
Long story short, I would expect pandoc to parse
(@someCitation
asThis is not what actually happens though:
$ pandoc -f markdown -t native <<< '(@someCitation'
yieldsI'm pretty sure the culprit is line 1414 here:
pandoc/src/Text/Pandoc/Parsing.hs
Lines 1411 to 1424 in a36d202
While on topic, this also becomes an issue at least in one other place where
notAfterString
is used, actually. Consider this (withsmart
extension):pandoc -f markdown -t native <<< "('asd')"
when I would expect something to the tune of
instead.
The text was updated successfully, but these errors were encountered: