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 Nov 14, 2024
1 parent 253e6ad commit f3c7b51
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 f3c7b51

Please sign in to comment.