git.iko.soy/typeable/pandoc
on master help sign in
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.

commit4d0cb0b2fca905dd4d5f0655af1a68a8a7074588 authorJesse Rosenthal <jrosenthal@jhu.edu> dateThu 21 Dec 2017, 11:09 (9 years ago) parent4e53c7b
1 file changed+9
src/Text/Pandoc/Writers/Powerpoint.hs+9
src/Text/Pandoc/Writers/Powerpoint.hs+9
@@ -411,6 +411,15 @@ blockToParagraphs (OrderedList listAttr blksLst) = do
411411 , pPropMarginLeft = Nothing
412412 }}) $
413413 concatMapM multiParBullet blksLst
414+blockToParagraphs (DefinitionList entries) = do
415+ let go :: PandocMonad m => ([Inline], [[Block]]) -> P m [Paragraph]
416+ go (ils, blksLst) = do
417+ term <-blockToParagraphs $ Para [Strong ils]
418+ -- For now, we'll treat each definition term as a
419+ -- blockquote. We can extend this further later.
420+ definition <- concatMapM (blockToParagraphs . BlockQuote) blksLst
421+ return $ term ++ definition
422+ concatMapM go entries
414423blockToParagraphs (Div _ blks) = concatMapM blockToParagraphs blks
415424-- TODO
416425blockToParagraphs blk = do