From 821cf3df4df695d4bb8f8659a85993033939e860 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Tue, 21 Mar 2023 20:47:45 -0700 Subject: DocBook reader: handle "book" for xref references This also adds a test xref to book and part. See also 4ea0508e6 / #8712. --- src/Text/Pandoc/Readers/DocBook.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs index a0fdfa319..56fc0dc4c 100644 --- a/src/Text/Pandoc/Readers/DocBook.hs +++ b/src/Text/Pandoc/Readers/DocBook.hs @@ -1354,6 +1354,7 @@ parseInline (Elem e) = xrefTitleByElem el | not (T.null xrefLabel) = xrefLabel | otherwise = case qName (elName el) of + "book" -> descendantContent "title" el "part" -> descendantContent "title" el "chapter" -> descendantContent "title" el "section" -> descendantContent "title" el -- cgit v1.2.3