git.iko.soy/typeable/pandoc
on master help sign in
DocBook reader: properly handle title in section element.

Previously we just got `section_title` for section (though sect1, sect2, etc. were handled properly). Closes #4526.

commitc82ee315de3df059946c1623005c504c0cb5aa16 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 8 Apr 2018, 16:51 (9 years ago) parent17b0499
1 file changed+1
src/Text/Pandoc/Readers/DocBook.hs+1
src/Text/Pandoc/Readers/DocBook.hs+1
@@ -1049,6 +1049,7 @@ parseInline (Elem e) =
10491049 | not (null xrefLabel) = xrefLabel
10501050 | otherwise = case qName (elName el) of
10511051 "chapter" -> descendantContent "title" el
1052+ "section" -> descendantContent "title" el
10521053 "sect1" -> descendantContent "title" el
10531054 "sect2" -> descendantContent "title" el
10541055 "sect3" -> descendantContent "title" el