diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2017-01-19 20:27:58 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2017-01-19 20:33:05 +0100 |
commit | 5729f1f2eaf1665be3fcbf92917503bdd15d1995 (patch) | |
tree | 38b8e269af9f77aee626f44f2312f208dcd7a815 /tests | |
parent | aad7c3bf542b082f2091faa663787c803e8cd844 (diff) | |
download | pandoc-5729f1f2eaf1665be3fcbf92917503bdd15d1995.tar.gz |
Org reader: allow short hand for single-line raw blocks
Single-line raw blocks can be given via `#+FORMAT: raw line`, where
`FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
Closes: #3366
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Tests/Readers/Org.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs index 0518f6932..72b7e2601 100644 --- a/tests/Tests/Readers/Org.hs +++ b/tests/Tests/Readers/Org.hs @@ -1605,6 +1605,18 @@ tests = ] =?> rawBlock "latex" "The category $\\cat{Set}$ is adhesive.\n" + , "Raw LaTeX line" =: + "#+LATEX: \\let\\foo\\bar" =?> + rawBlock "latex" "\\let\\foo\\bar" + + , "Raw Beamer line" =: + "#+beamer: \\pause" =?> + rawBlock "beamer" "\\pause" + + , "Raw HTML line" =: + "#+HTML: <aside>not important</aside>" =?> + rawBlock "html" "<aside>not important</aside>" + , "Export block HTML" =: unlines [ "#+BEGIN_export html" , "<samp>Hello, World!</samp>" |