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/Tests | |
parent | b2f307498819247b7f2955373fe72e895948b494 (diff) | |
download | pandoc-a59ae96062a520bc660b7a97dc0f002abb243201.tar.gz |
Markdown reader: Set citationNoteNum accurately in citations.
This also changes stateLastNoteNumber -> stateNoteNumber.
Diffstat (limited to 'test/Tests')
-rw-r--r-- | test/Tests/Readers/Markdown.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Tests/Readers/Markdown.hs b/test/Tests/Readers/Markdown.hs index 228777496..3af5e2a94 100644 --- a/test/Tests/Readers/Markdown.hs +++ b/test/Tests/Readers/Markdown.hs @@ -471,7 +471,7 @@ tests = [ testGroup "inline code" , citationPrefix = [] , citationSuffix = [] , citationMode = AuthorInText - , citationNoteNum = 0 + , citationNoteNum = 1 , citationHash = 0 } ] "@item1") @@ -481,12 +481,12 @@ tests = [ testGroup "inline code" , citationPrefix = [] , citationSuffix = [] , citationMode = AuthorInText - , citationNoteNum = 0 + , citationNoteNum = 1 , citationHash = 0 } ] "@1657:huyghens") ] - , let citation = cite [Citation "cita" [] [] AuthorInText 0 0] (str "@cita") + , let citation = cite [Citation "cita" [] [] AuthorInText 1 0] (str "@cita") in testGroup "footnote/link following citation" -- issue #2083 [ "footnote" =: T.unlines [ "@cita[^note]" @@ -523,7 +523,7 @@ tests = [ testGroup "inline code" , "regular citation" =: "@cita [foo]" =?> para ( - cite [Citation "cita" [] [Str "foo"] AuthorInText 0 0] + cite [Citation "cita" [] [Str "foo"] AuthorInText 1 0] (str "@cita" <> space <> str "[foo]") ) ] |