git.iko.soy/typeable/pandoc
on master help sign in
DocBook reader: Support informalfigure (#7079)
69b7401Nils Carlson
src/Text/Pandoc/Readers/DocBook.hs+3−1
@@ -206,7 +206,7 @@ List of all DocBook tags, with [x] indicating implemented,
206[x] info - A wrapper for information about a component or other block. (DocBook v5)
206[x] info - A wrapper for information about a component or other block. (DocBook v5)
207[x] informalequation - A displayed mathematical equation without a title
207[x] informalequation - A displayed mathematical equation without a title
208[x] informalexample - A displayed example without a title
208[x] informalexample - A displayed example without a title
209−[ ] informalfigure - A untitled figure
209+[x] informalfigure - An untitled figure
210[ ] informaltable - A table without a title
210[ ] informaltable - A table without a title
211[ ] initializer - The initializer for a FieldSynopsis
211[ ] initializer - The initializer for a FieldSynopsis
212[x] inlineequation - A mathematical equation or expression occurring inline
212[x] inlineequation - A mathematical equation or expression occurring inline
@@ -669,6 +669,7 @@ blockTags =
669 , "index"
669 , "index"
670 , "info"
670 , "info"
671 , "informalexample"
671 , "informalexample"
672+ , "informalfigure"
672 , "informaltable"
673 , "informaltable"
673 , "itemizedlist"
674 , "itemizedlist"
674 , "linegroup"
675 , "linegroup"
@@ -855,6 +856,7 @@ parseBlock (Elem e) =
855 "variablelist" -> definitionList <$> deflistitems
856 "variablelist" -> definitionList <$> deflistitems
856 "procedure" -> bulletList <$> steps
857 "procedure" -> bulletList <$> steps
857 "figure" -> getFigure e
858 "figure" -> getFigure e
859+ "informalfigure" -> getFigure e
858 "mediaobject" -> para <$> getMediaobject e
860 "mediaobject" -> para <$> getMediaobject e
859 "caption" -> skip
861 "caption" -> skip
860 "info" -> addMetadataFromElement e
862 "info" -> addMetadataFromElement e