-
-
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
References in markdown links and spans parsed as citations #7632
Comments
I agree that this is undesirable in this case, but there's a general problem of ambiguity with citation and example list syntax. Is this a regression from earlier versions, or has it always behaved this way? |
It was like this already in pandoc 1.13 (the earliest version I tested). So the current behavior has history on its side. It's causing me some headaches though: it breaks the composability of spans, which makes them a lot less useful. For context, my use case is a bilingual document with many paragraphs of the form
or
I make one output where both languages appear (with different styles using CSS), and also one output for each language (the other is removed by a Lua filter). I thought spans where perfect for this but it's not working when I have equation references in the text, which led me to file this issue. |
I see the difficulty. I'll see if I can think of a solution. |
Thanks for fixing this! |
One nagging worry about the fix: with this fix, |
For example:
gives
The same occurs with spans, e.g. with
It seems to me the
[...](...)
and[...]{...}
semantics should have priority over the citation semantics.There is also a problem with pandoc-crossref that might be related. Example:
so we get the string
text ( 1){}
, instead oftext (sec. 1)
inside a span.Reproduced with pandoc master (465c28d) on Pop OS based on Ubuntu 21.04.
The text was updated successfully, but these errors were encountered: