-
-
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
Pandoc's citeproc gets confused by the presence of footnotes #9080
Comments
Write it this way:
You wouldn't normally want a footnote inside a citation itself. |
It does seem to be a bug, however. |
Parsing seems correct, so the problem must be in T.P.Citeproc: , Cite
[ Citation
{ citationId = "one"
, citationPrefix = []
, citationSuffix =
[ Note
[ Para
[ Str "Two"
, Space
, Str "can"
, Space
, Str "be"
, Space
, Str "as"
, Space
, Str "bad"
, Space
, Str "as"
, Space
, Str "One"
, Space
, Cite
[ Citation
{ citationId = "two"
, citationPrefix = []
, citationSuffix = []
, citationMode = NormalCitation
, citationNoteNum = 2
, citationHash = 0
}
]
[ Str "[@two]" ]
]
]
]
, citationMode = NormalCitation
, citationNoteNum = 2
, citationHash = 0
}
]
[ Str "[@one[^fn-two]]" ] |
This actually renders as:
|
Hm, I think there's some bad interaction with reference link syntax. (Inserting a space before the note makes the problem go away.) |
Actually, in US style, we'd write the note after the period (I know that not all styles do that):
This works fine. |
...is not a link, bracketed span, or reference. See #9080.
I've pushed a fix that allows |
I think the issue may be at
I wonder if this assumption is violated in this particular case... |
Explain the problem.
Let's take the following document:
If we run
pandoc -C sample.md
Pandoc produces the following HTML output:Notably, Pandoc has produced the text
(Two, n.d.)
and lost the footnote entirely.The expected result would be the text
(One, n.d.)
with the given footnote.Pandoc version?
The text was updated successfully, but these errors were encountered: