mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-22 15:35:48 +00:00
MediaWiki reader: Allow def list item with just a term.
This commit is contained in:
@@ -367,7 +367,10 @@ definitionList = B.definitionList <$> many1 defListItem
|
||||
defListItem :: MWParser (Inlines, [Blocks])
|
||||
defListItem = try $ do
|
||||
terms <- mconcat . intersperse B.linebreak <$> many defListTerm
|
||||
defs <- many1 $ listItem ':'
|
||||
-- we allow dd with no dt, or dt with no dd
|
||||
defs <- if B.isNull terms
|
||||
then many1 $ listItem ':'
|
||||
else many $ listItem ':'
|
||||
return (terms, defs)
|
||||
|
||||
defListTerm :: MWParser Inlines
|
||||
|
||||
Reference in New Issue
Block a user