git.iko.soy/typeable/pandoc
on master help sign in
DocBook reader: Support bridgehead.
9d44dc3John MacFarlane
src/Text/Pandoc/Readers/DocBook.hs+3−2
@@ -65,7 +65,7 @@ List of all DocBook tags, with [x] indicating implemented,
65[x] blockquote - A quotation set off from the main text
65[x] blockquote - A quotation set off from the main text
66[x] book - A book
66[x] book - A book
67[x] bookinfo - Meta-information for a Book
67[x] bookinfo - Meta-information for a Book
68−[ ] bridgehead - A free-floating heading
68+[x] bridgehead - A free-floating heading
69[ ] callout - A “called out” description of a marked Area
69[ ] callout - A “called out” description of a marked Area
70[ ] calloutlist - A list of Callouts
70[ ] calloutlist - A list of Callouts
71[x] caption - A caption
71[x] caption - A caption
@@ -552,7 +552,7 @@ isBlockElement (Elem e) = qName (elName e) `elem` blocktags
552 "ackno","epigraph","blockquote","bibliography","bibliodiv",
552 "ackno","epigraph","blockquote","bibliography","bibliodiv",
553 "biblioentry","glossee","glosseealso","glossary",
553 "biblioentry","glossee","glosseealso","glossary",
554 "glossdiv","glosslist","chapter","appendix","preface",
554 "glossdiv","glosslist","chapter","appendix","preface",
555− "sect1","sect2","sect3","sect4","sect5","section",
555+ "bridgehead","sect1","sect2","sect3","sect4","sect5","section",
556 "refsect1","refsect2","refsect3","refsection",
556 "refsect1","refsect2","refsect3","refsection",
557 "important","caution","note","tip","warning","qandadiv",
557 "important","caution","note","tip","warning","qandadiv",
558 "question","answer","abstract","itemizedlist","orderedlist",
558 "question","answer","abstract","itemizedlist","orderedlist",
@@ -630,6 +630,7 @@ parseBlock (Elem e) =
630 "chapter" -> sect 0
630 "chapter" -> sect 0
631 "appendix" -> sect 0
631 "appendix" -> sect 0
632 "preface" -> sect 0
632 "preface" -> sect 0
633+ "bridgehead" -> para . strong <$> getInlines e
633 "sect1" -> sect 1
634 "sect1" -> sect 1
634 "sect2" -> sect 2
635 "sect2" -> sect 2
635 "sect3" -> sect 3
636 "sect3" -> sect 3