diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-09-08 21:56:12 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-09-21 10:10:37 -0700 |
commit | a59ae96062a520bc660b7a97dc0f002abb243201 (patch) | |
tree | 92ea0de9158dac47861f6f65d01b3351b017875d /test/command | |
parent | b2f307498819247b7f2955373fe72e895948b494 (diff) | |
download | pandoc-a59ae96062a520bc660b7a97dc0f002abb243201.tar.gz |
Markdown reader: Set citationNoteNum accurately in citations.
This also changes stateLastNoteNumber -> stateNoteNumber.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/5099.md | 2 | ||||
-rw-r--r-- | test/command/cite-in-inline-note.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/command/5099.md b/test/command/5099.md index ab49b9a59..19b067b79 100644 --- a/test/command/5099.md +++ b/test/command/5099.md @@ -2,7 +2,7 @@ % pandoc -t native (@citation ^D -[Para [Str "(",Cite [Citation {citationId = "citation", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@citation"]]] +[Para [Str "(",Cite [Citation {citationId = "citation", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 1, citationHash = 0}] [Str "@citation"]]] ``` ``` diff --git a/test/command/cite-in-inline-note.md b/test/command/cite-in-inline-note.md index 069484eed..962eddd2a 100644 --- a/test/command/cite-in-inline-note.md +++ b/test/command/cite-in-inline-note.md @@ -2,5 +2,5 @@ % pandoc -t native foo^[bar [@doe]] ^D -[Para [Str "foo",Note [Para [Str "bar",Space,Cite [Citation {citationId = "doe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@doe]"]]]]] +[Para [Str "foo",Note [Para [Str "bar",Space,Cite [Citation {citationId = "doe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 1, citationHash = 0}] [Str "[@doe]"]]]]] ``` |