Implement basic definition list functionality to PowerPoint writer.

These are currently implemented in terms of a Bold para for the terms,
and then blockquotes for the definitions. THis can be refined a bit in
the future.
This commit is contained in:
Jesse Rosenthal
2017-12-21 11:09:05 -05:00
parent 4e53c7bf55
commit 4d0cb0b2fc
+9
View File
@@ -411,6 +411,15 @@ blockToParagraphs (OrderedList listAttr blksLst) = do
, pPropMarginLeft = Nothing
}}) $
concatMapM multiParBullet blksLst
blockToParagraphs (DefinitionList entries) = do
let go :: PandocMonad m => ([Inline], [[Block]]) -> P m [Paragraph]
go (ils, blksLst) = do
term <-blockToParagraphs $ Para [Strong ils]
-- For now, we'll treat each definition term as a
-- blockquote. We can extend this further later.
definition <- concatMapM (blockToParagraphs . BlockQuote) blksLst
return $ term ++ definition
concatMapM go entries
blockToParagraphs (Div _ blks) = concatMapM blockToParagraphs blks
-- TODO
blockToParagraphs blk = do