Org reader: allow multiple #+SUBTITLE export settings

The values of all lines are read as inlines and collected in the
`subtitle` metadata field.
This commit is contained in:
Albert Krewinkel
2020-06-29 17:03:33 +02:00
parent 11dc9f84f5
commit d17b257c89
3 changed files with 12 additions and 1 deletions
+7
View File
@@ -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"