From ce9583840dcf8baffc81b5f44f256810809e5bda Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 31 Jul 2025 15:33:20 -0700 Subject: Improve org citation parsing (allow space after ;). --- src/Text/Pandoc/Readers/Org/Inlines.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Readers/Org/Inlines.hs b/src/Text/Pandoc/Readers/Org/Inlines.hs index 0f9a36d0c..66dd52638 100644 --- a/src/Text/Pandoc/Readers/Org/Inlines.hs +++ b/src/Text/Pandoc/Readers/Org/Inlines.hs @@ -199,7 +199,7 @@ addSuffixToLastItem aff cs = do citationSuffix d <> B.toList aff' }]) citeItems :: PandocMonad m => OrgParser m (F [Citation]) -citeItems = sequence <$> citeItem `sepBy1` (char ';') +citeItems = sequence <$> citeItem `sepBy1` (char ';' <* skipMany1 spaceChar) citeItem :: PandocMonad m => OrgParser m (F Citation) citeItem = do -- cgit v1.2.3