From 29552eff3e1c0a7eab8b114ac58ca83422a84fb0 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Mon, 13 Jun 2016 23:53:14 +0200 Subject: Org reader: support arbitrary raw inlines Org mode allows arbitrary raw inlines ("export snippets" in Emacs parlance) to be included as `@@format:raw foreign format text@@`. Support for this features is added to the Org reader. --- tests/Tests/Readers/Org.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs index ab50aa49c..56dedee55 100644 --- a/tests/Tests/Readers/Org.hs +++ b/tests/Tests/Readers/Org.hs @@ -405,6 +405,10 @@ tests = "\\notacommand{foo}" =?> para (rawInline "latex" "\\notacommand{foo}") + , "Export snippet" =: + "@@html:M-x org-agenda@@" =?> + para (rawInline "html" "M-x org-agenda") + , "MathML symbol in LaTeX-style" =: "There is a hackerspace in Lübeck, Germany, called nbsp (unicode symbol: '\\nbsp')." =?> para ("There is a hackerspace in Lübeck, Germany, called nbsp (unicode symbol: ' ').") -- cgit v1.2.3