diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-12-14 09:20:09 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-12-14 09:20:26 -0800 |
commit | 5817e864918e5d03b6402afac0ff8c748a2ac2f6 (patch) | |
tree | 7f8bdfca19a4d5cfc9ca4f95699ce1f2d323fd4d /test | |
parent | ce44cf688a0e37f001dccfdb014f4ecd6e55d6ab (diff) | |
download | pandoc-5817e864918e5d03b6402afac0ff8c748a2ac2f6.tar.gz |
Org reader: remove support for "Berkeley style" citations.
See #7329.
Diffstat (limited to 'test')
-rw-r--r-- | test/Tests/Readers/Org/Inline/Citation.hs | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/test/Tests/Readers/Org/Inline/Citation.hs b/test/Tests/Readers/Org/Inline/Citation.hs index a11804983..7eabd9aae 100644 --- a/test/Tests/Readers/Org/Inline/Citation.hs +++ b/test/Tests/Readers/Org/Inline/Citation.hs @@ -169,53 +169,6 @@ tests = in (para $ cite [citation] "[[citep:Dominik201408][See page 20::, for example]]") ] - , testGroup "Berkeley-style citations" $ - let pandocCite = Citation - { citationId = "Pandoc" - , citationPrefix = mempty - , citationSuffix = mempty - , citationMode = NormalCitation - , citationNoteNum = 0 - , citationHash = 0 - } - pandocInText = pandocCite { citationMode = AuthorInText } - dominikCite = Citation - { citationId = "Dominik201408" - , citationPrefix = mempty - , citationSuffix = mempty - , citationMode = NormalCitation - , citationNoteNum = 0 - , citationHash = 0 - } - dominikInText = dominikCite { citationMode = AuthorInText } - in - [ "Berkeley-style in-text citation" =: - "See @Dominik201408." =?> - para ("See " - <> cite [dominikInText] "@Dominik201408" - <> ".") - - , "Berkeley-style parenthetical citation list" =: - "[(cite): see; @Dominik201408;also @Pandoc; and others]" =?> - let pandocCite' = pandocCite { - citationPrefix = toList "also" - , citationSuffix = toList "and others" - } - dominikCite' = dominikCite { - citationPrefix = toList "see" - } - in (para $ cite [dominikCite', pandocCite'] "") - - , "Berkeley-style plain citation list" =: - "[cite: See; @Dominik201408; and @Pandoc; and others]" =?> - let pandocCite' = pandocInText { citationPrefix = toList "and" } - in (para $ "See " - <> cite [dominikInText] "" - <> "," <> space - <> cite [pandocCite'] "" - <> "," <> space <> "and others") - ] - , "LaTeX citation" =: "\\cite{Coffee}" =?> let citation = Citation |