diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2020-06-29 21:19:34 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2020-06-29 21:19:34 +0200 |
commit | 5ef315cc6db868a11bd0c3e887b8c55eb2216662 (patch) | |
tree | 2affeab7c36d22cfdcb304248a6102f302b27c62 /test/Tests/Readers/Org/Meta.hs | |
parent | 90ac70c79c776a0f41367a6f509d66591aa925ae (diff) | |
download | pandoc-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.hs | 7 |
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" =: |