@@ -70,8 +70,8 @@ List of all DocBook tags, with [x] indicating implemented,
70[x] book - A book
70[x] book - A book
71[x] bookinfo - Meta-information for a Book
71[x] bookinfo - Meta-information for a Book
72[x] bridgehead - A free-floating heading
72[x] bridgehead - A free-floating heading
73−[ ] callout - A “called out” description of a marked Area
73+[x] callout - A “called out” description of a marked Area
74−[ ] calloutlist - A list of Callouts
74+[x] calloutlist - A list of Callouts
75[x] caption - A caption
75[x] caption - A caption
76[x] caution - A note of caution
76[x] caution - A note of caution
77[x] chapter - A chapter, as of a book
77[x] chapter - A chapter, as of a book
@@ -603,7 +603,7 @@ isBlockElement (Elem e) = qName (elName e) `elem` blocktags
603 "important","caution","note","tip","warning","qandadiv",
603 "important","caution","note","tip","warning","qandadiv",
604 "question","answer","abstract","itemizedlist","orderedlist",
604 "question","answer","abstract","itemizedlist","orderedlist",
605 "variablelist","article","book","table","informaltable",
605 "variablelist","article","book","table","informaltable",
606− "screen","programlisting","example"]
606+ "screen","programlisting","example","calloutlist"]
607isBlockElement _ = False
607isBlockElement _ = False
609-- Trim leading and trailing newline characters
609-- Trim leading and trailing newline characters
@@ -712,6 +712,7 @@ parseBlock (Elem e) =
712 "question" -> addToStart (strong (str "Q:") <> str " ") <$> getBlocks e
712 "question" -> addToStart (strong (str "Q:") <> str " ") <$> getBlocks e
713 "answer" -> addToStart (strong (str "A:") <> str " ") <$> getBlocks e
713 "answer" -> addToStart (strong (str "A:") <> str " ") <$> getBlocks e
714 "abstract" -> blockQuote <$> getBlocks e
714 "abstract" -> blockQuote <$> getBlocks e
715+ "calloutlist" -> bulletList <$> callouts
715 "itemizedlist" -> bulletList <$> listitems
716 "itemizedlist" -> bulletList <$> listitems
716 "orderedlist" -> do
717 "orderedlist" -> do
717 let listStyle = case attrValue "numeration" e of
718 let listStyle = case attrValue "numeration" e of
@@ -785,6 +786,7 @@ parseBlock (Elem e) =
785 contents <- getBlocks e
786 contents <- getBlocks e
786 return $ blockQuote (contents <> attrib)
787 return $ blockQuote (contents <> attrib)
787 listitems = mapM getBlocks $ filterChildren (named "listitem") e
788 listitems = mapM getBlocks $ filterChildren (named "listitem") e
789+ callouts = mapM getBlocks $ filterChildren (named "callout") e
788 deflistitems = mapM parseVarListEntry $ filterChildren
790 deflistitems = mapM parseVarListEntry $ filterChildren
789 (named "varlistentry") e
791 (named "varlistentry") e
790 parseVarListEntry e' = do
792 parseVarListEntry e' = do