MediaWiki reader: handle multiline math in list items.

Closes #9293.
This commit is contained in:
John MacFarlane
2023-12-30 21:53:57 -07:00
parent 56df2f1c17
commit 9a8f27b0fe
+1 -1
View File
@@ -503,7 +503,7 @@ listItem c = try $ do
-- * next list item
-- which seems to be valid mediawiki.
listChunk :: PandocMonad m => MWParser m Text
listChunk = template <|> countChar 1 anyChar
listChunk = template <|> (snd <$> withRaw math) <|> countChar 1 anyChar
listItem' :: PandocMonad m => Char -> MWParser m Blocks
listItem' c = try $ do