LaTeX reader: improve descItem.

For some reason we were skipping arbitrary blocks before `\item`.
This is now changed to "skip whitespace and comments."
This commit is contained in:
John MacFarlane 2022-01-25 08:43:12 -08:00
parent 7ddb609aae
commit 183fb3e327

View file

@ -1187,7 +1187,7 @@ item = void blocks *> controlSeq "item" *> skipopts *> blocks
descItem :: PandocMonad m => LP m (Inlines, [Blocks]) descItem :: PandocMonad m => LP m (Inlines, [Blocks])
descItem = do descItem = do
blocks -- skip blocks before item optional spaces1
controlSeq "item" controlSeq "item"
sp sp
ils <- opt ils <- opt