git.iko.soy/typeable/pandoc
on master help sign in
DocBook reader: Support informalfigure (#7079)

Add support for informalfigure.

commit69b7401e31216ae52164950970cf88b778d8d198 authorNils Carlson <nils@nilscarlson.se> dateMon 8 Feb 2021, 17:36 (6 years ago) parentd202f7e
1 file changed+3−1
src/Text/Pandoc/Readers/DocBook.hs+3−1
src/Text/Pandoc/Readers/DocBook.hs+3−1
@@ -206,7 +206,7 @@ List of all DocBook tags, with [x] indicating implemented,
206206[x] info - A wrapper for information about a component or other block. (DocBook v5)
207207[x] informalequation - A displayed mathematical equation without a title
208208[x] informalexample - A displayed example without a title
209−[ ] informalfigure - A untitled figure
209+[x] informalfigure - An untitled figure
210210[ ] informaltable - A table without a title
211211[ ] initializer - The initializer for a FieldSynopsis
212212[x] inlineequation - A mathematical equation or expression occurring inline
@@ -669,6 +669,7 @@ blockTags =
669669 , "index"
670670 , "info"
671671 , "informalexample"
672+ , "informalfigure"
672673 , "informaltable"
673674 , "itemizedlist"
674675 , "linegroup"
@@ -855,6 +856,7 @@ parseBlock (Elem e) =
855856 "variablelist" -> definitionList <$> deflistitems
856857 "procedure" -> bulletList <$> steps
857858 "figure" -> getFigure e
859+ "informalfigure" -> getFigure e
858860 "mediaobject" -> para <$> getMediaobject e
859861 "caption" -> skip
860862 "info" -> addMetadataFromElement e