Skip to content

Commit

Permalink
Handle delims in reference fields
Browse files Browse the repository at this point in the history
Edge case that cropped up somewhere or other. Not sure if it's actually
correct to do this but it fixed a parse error so I'll live with it for
now.
  • Loading branch information
silby committed Dec 3, 2024
1 parent 4f13775 commit 172b0c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Readers/Mdoc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ referenceField :: PandocMonad m => T.Text -> ReferenceField -> MdocParser m ()
referenceField m field = do
macro m
reference <- currentReference <$> getState
contents <- T.unwords <$> litsToText
contents <- stringify <$> litsAndDelimsToInlines
eol
modifyState $ \s -> s{currentReference = M.insertWith (++) field [contents] reference}
return ()
Expand Down

0 comments on commit 172b0c6

Please sign in to comment.