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
We've got a report on Quarto side about some puzzling Citation handling issue when Spans is used before a citation with two keys. For reference this is the one:
I don't have any more ideas to try pinpoint what triggers this and this seems like an issue, or could be something to protect against
Using @{..} syntax helps as it leads to NormalCitationtoo
---title: "Bug demo"references:
- author: Janeid: some-very-long-id-26-charsissued: 2019-09title: Title 1type: article-journal
- author: Johnid: id2issued: 2020-11title: Title 2type: article-journal---[(string of 28 characters long)]{key=value} [@{some-very-long-id-26-chars}; @id2].
❯ pandoc -f markdown -t native --citeproc index.qmd | grep "NormalCitation"
, citationMode = NormalCitation
, citationMode = NormalCitation
```
## Original Context
For context, original use case is something like this
````markdown
---
title: "Bug demo"
---
[(Figures 1A and S1A, Table S1)]{fg="#4D4D0C" bg="#F0F352"} [@soto_perez_crispr_cas_2019; @gregory_gut_2020; @nayfach_metagenomic_2021].
where Span is used to set attributes used in a Lua filter.
Information
This is on Windows with
❯ pandoc --version
pandoc.exe 3.6.2
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: C:\Users\chris\AppData\Roaming\pandoc
Copyright (C) 2006-2024 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
The text was updated successfully, but these errors were encountered:
We've got a report on Quarto side about some puzzling Citation handling issue when Spans is used before a citation with two keys. For reference this is the one:
Here is a minimal reproducible example I managed to come up with
The citation is there will be parsed as
AuthorInText
, with brackets being kept as string (Str "[")
In HTML this looks like
This syntax is expected to be
NormalCitation
which you get with a more generic exampleWhat is puzzling is that
Removing 1 char in the id leads to
NormalCitation
Removing 1 char in the span content between
(...)
also lead toNormalCitation
Adding space after
[
at the start (i.e.[ (...)]
) also lead toNormalCitation
I don't have any more ideas to try pinpoint what triggers this and this seems like an issue, or could be something to protect against
Using
@{..}
syntax helps as it leads toNormalCitation
toowhere Span is used to set attributes used in a Lua filter.
Information
This is on Windows with
The text was updated successfully, but these errors were encountered: