aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2020-06-29 16:43:27 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2020-06-29 17:03:33 +0200
commitd17b257c89624ceea6bd319caa22aa25e95fb5e9 (patch)
tree47e3091488105ab70f49e904c5238e7d2fb3392d /src/Text
parent11dc9f84f54650037c60917435fd91a90f94f9cf (diff)
downloadpandoc-d17b257c89624ceea6bd319caa22aa25e95fb5e9.tar.gz
Org reader: allow multiple #+SUBTITLE export settings
The values of all lines are read as inlines and collected in the `subtitle` metadata field.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Org/Meta.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Org/Meta.hs b/src/Text/Pandoc/Readers/Org/Meta.hs
index 3e77b3f42..c922403df 100644
--- a/src/Text/Pandoc/Readers/Org/Meta.hs
+++ b/src/Text/Pandoc/Readers/Org/Meta.hs
@@ -79,6 +79,7 @@ exportSettingHandlers = Map.fromList
, ("date" , lineOfInlines `parseThen` setField "date")
, ("description", lineOfInlines `parseThen` collectLines "description")
, ("keywords" , lineOfInlines `parseThen` collectLines "keywords")
+ , ("subtitle" , lineOfInlines `parseThen` collectLines "subtitle")
, ("title" , lineOfInlines `parseThen` collectLines "title")
-- LaTeX
, ("latex_class", fmap pure anyLine `parseThen` setField "documentclass")