diff options
| author | Andres Freund <andres@anarazel.de> | 2023-03-21 20:47:45 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2023-03-22 08:32:48 -0700 |
| commit | 821cf3df4df695d4bb8f8659a85993033939e860 (patch) | |
| tree | a6c4165e2f7113252f5255f5adbbe28e408a2c85 /src/Text | |
| parent | 440b438158e61b3452a9622112061430e457931b (diff) | |
DocBook reader: handle "book" for xref references
This also adds a test xref to book and part. See also 4ea0508e6 / #8712.
Diffstat (limited to 'src/Text')
| -rw-r--r-- | src/Text/Pandoc/Readers/DocBook.hs | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
