mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-21 05:43:39 +08:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user