mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 10:16:32 +00:00
The change provides a way to use citation keys that contain
special characters not usable with the standard citation
key syntax. Example: `@{foo_bar{x}'}` for the key `foo_bar{x}`.
Closes #6026.
The change requires adding a new parameter to the `citeKey`
parser from Text.Pandoc.Parsing [API change].
Markdown reader: recognize @{..} syntax for citatinos.
Markdown writer: use @{..} syntax for citations when needed.
Update manual with curly-brace syntax for citations.
Closes #6026.
815 B
815 B
% pandoc -t native
@{https://openreview.net/forum?id=HkwoSDPgg}
@https://openreview.net/forum?id=HkwoSDPgg
^D
[Para [Cite [Citation {citationId = "https://openreview.net/forum?id=HkwoSDPgg", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 1, citationHash = 0}] [Str "@https://openreview.net/forum?id=HkwoSDPgg"]]
,Para [Cite [Citation {citationId = "https://openreview.net/forum?id", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 2, citationHash = 0}] [Str "@https://openreview.net/forum?id"],Str "=HkwoSDPgg"]]
% pandoc -t markdown
@{https://openreview.net/forum?id=HkwoSDPgg}
@https://openreview.net/forum?id=HkwoSDPgg
^D
@{https://openreview.net/forum?id=HkwoSDPgg}
@https://openreview.net/forum?id=HkwoSDPgg