aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers/Org
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 /test/Tests/Readers/Org
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 'test/Tests/Readers/Org')
-rw-r--r--test/Tests/Readers/Org/Meta.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Tests/Readers/Org/Meta.hs b/test/Tests/Readers/Org/Meta.hs
index c811f2363..89cd35b26 100644
--- a/test/Tests/Readers/Org/Meta.hs
+++ b/test/Tests/Readers/Org/Meta.hs
@@ -93,6 +93,13 @@ tests =
in Pandoc meta mempty
]
+ , "Subtitle" =:
+ T.unlines [ "#+SUBTITLE: Your Life in"
+ , "#+SUBTITLE: /Plain/ Text"
+ ] =?>
+ let subtitle = "Your Life in" <> softbreak <> emph "Plain" <> " Text"
+ in Pandoc (setMeta "subtitle" (toMetaValue subtitle) nullMeta) mempty
+
, "Keywords" =:
T.unlines [ "#+KEYWORDS: pandoc, testing,"
, "#+KEYWORDS: Org"