aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-07-18 12:32:18 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-07-18 12:32:31 -0700
commit3b563cfe8fea0e38b2899c98517bb8b61f605082 (patch)
tree2db2377c875c0a3d2af4ea5228efd7e09044affe
parent36fede2b024d46f64d1a5bbc1a82b22d681fe7c3 (diff)
downloadpandoc-3b563cfe8fea0e38b2899c98517bb8b61f605082.tar.gz
DocBook reader: parse releaseinfo as metadata.
Closes #6542. Note that you'll need to put releaseinfo somewhere in your template if you want this to be part of the converted output.
-rw-r--r--src/Text/Pandoc/Readers/DocBook.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs
index 096cfc520..b04952c27 100644
--- a/src/Text/Pandoc/Readers/DocBook.hs
+++ b/src/Text/Pandoc/Readers/DocBook.hs
@@ -608,6 +608,7 @@ addMetadataFromElement e = do
addMetaField "author" e
addMetaField "date" e
addMetaField "release" e
+ addMetaField "releaseinfo" e
return mempty
where addMetaField fieldname elt =
case filterChildren (named fieldname) elt of