Markdown reader: fix regression with -@citekey.
This was previously parsed as an author-in-text suppress-author
citation.
commit9bb168100a0ce69cf0f11a2c83f9218a2b5baf6d
authorJohn MacFarlane <jgm@berkeley.edu>
dateThu 15 Apr 2021, 12:34 (5 years ago)
parent2d60524
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -1500,7 +1500,7 @@ inline = do
15001500 '\145' -> smart
15011501 '\8220' -> smart
15021502 '\147' -> smart
1503− '-' -> smart
1503+ '-' -> smart <|> cite
15041504 '.' -> smart
15051505 '&' -> return . B.singleton <$> charRef
15061506 ':' -> emoji
test/command/7219.mdnew file+7
@@ -0,0 +1,7 @@
1+```
2+% pandoc -t native
3+-@Citekey
4+^D
5+[Para [Cite [Citation {citationId = "Citekey", citationPrefix = [], citationSuffix = [], citationMode = SuppressAuthor, citationNoteNum = 1, citationHash = 0}] [Str "@Citekey"]]]
6+```
7+