mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user