aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers/Org/Meta.hs
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2020-06-29 21:19:34 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2020-06-29 21:19:34 +0200
commit5ef315cc6db868a11bd0c3e887b8c55eb2216662 (patch)
tree2affeab7c36d22cfdcb304248a6102f302b27c62 /test/Tests/Readers/Org/Meta.hs
parent90ac70c79c776a0f41367a6f509d66591aa925ae (diff)
downloadpandoc-5ef315cc6db868a11bd0c3e887b8c55eb2216662.tar.gz
Org reader: keep unknown keyword lines as raw org
The lines of unknown keywords, like `#+SOMEWORD: value` are no longer read as metadata, but kept as raw `org` blocks. This ensures that more information is retained when round-tripping org-mode files; additionally, this change makes it possible to support non-standard org extensions via filters.
Diffstat (limited to 'test/Tests/Readers/Org/Meta.hs')
-rw-r--r--test/Tests/Readers/Org/Meta.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Tests/Readers/Org/Meta.hs b/test/Tests/Readers/Org/Meta.hs
index bbbb553ba..0bd63b15d 100644
--- a/test/Tests/Readers/Org/Meta.hs
+++ b/test/Tests/Readers/Org/Meta.hs
@@ -214,8 +214,11 @@ tests =
]
, "Unknown keyword" =:
- "#+UNKNOWN_KEYWORD: Chumbawamba" =?>
- Pandoc nullMeta mempty
+ T.unlines [ "#+UNKNOWN_KEYWORD: Chumbawamba"
+ , "#+ANOTHER_UNKNOWN: Blur"
+ ] =?>
+ rawBlock "org" "#+UNKNOWN_KEYWORD: Chumbawamba" <>
+ rawBlock "org" "#+ANOTHER_UNKNOWN: Blur"
]
, "Properties drawer" =: