From c82ee315de3df059946c1623005c504c0cb5aa16 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 8 Apr 2018 16:51:01 -0700 Subject: 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. --- src/Text/Pandoc/Readers/DocBook.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs index 6bc4584c2..5939f3888 100644 --- a/src/Text/Pandoc/Readers/DocBook.hs +++ b/src/Text/Pandoc/Readers/DocBook.hs @@ -1049,6 +1049,7 @@ parseInline (Elem e) = | not (null xrefLabel) = xrefLabel | otherwise = case qName (elName el) of "chapter" -> descendantContent "title" el + "section" -> descendantContent "title" el "sect1" -> descendantContent "title" el "sect2" -> descendantContent "title" el "sect3" -> descendantContent "title" el -- cgit v1.2.3