-
-
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
stringify duplicates citation text #7855
Comments
If you do [ Para
[ Cite
[ Citation
{ citationId = "cite"
, citationPrefix =
[ Str "foo" , Space , Str "bar" , Space , Str "baz" ]
, citationSuffix = []
, citationMode = NormalCitation
, citationNoteNum = 1
, citationHash = 0
}
]
[ Str "[foo"
, Space
, Str "bar"
, Space
, Str "baz"
, Space
, Str "@cite]"
]
]
] in which structure there are actually two inline lists with "foo bar baz..." (one the citationPrefix field, the other the second argument of the Cite constructor). In fact this has nothing to do with Lua and can be reproduced using Haskell: Prelude Text.Pandoc.Builder Text.Pandoc.Shared Text.Pandoc Data.Text> stringify [Para [Cite [Citation {citationId = "cite", citationPrefix = [Str "foo",Space,Str "bar"], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 1, citationHash = 0}] [Str "[foo",Space,Str "bar",Space,Str "@cite]"]]]
"foo bar[foo bar @cite]" The question, then, is whether |
Actually the work is done by |
Explain the problem.
Pandoc version?
pandoc 2.17.0.1 on Linux
The text was updated successfully, but these errors were encountered: