aboutsummaryrefslogtreecommitdiff
path: root/tests/rst-reader.native
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-11-17 03:36:04 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-11-17 03:36:04 +0000
commit9d20eeb019a6c5208342bfc3f03ae47c9aa83483 (patch)
tree5cef381c2f813eb272c7a3bb7d0787557a3c213e /tests/rst-reader.native
parentfce48c392acd5c56141ce924f4aaa8fadd10085d (diff)
downloadpandoc-9d20eeb019a6c5208342bfc3f03ae47c9aa83483.tar.gz
Support for "..code-block" directive in RST reader.
Not core RST, but used in Sphinx for code blocks annotated with syntax information. Thanks to Luke Plant for the patch. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1619 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests/rst-reader.native')
-rw-r--r--tests/rst-reader.native2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/rst-reader.native b/tests/rst-reader.native
index 8848fa111..294be318c 100644
--- a/tests/rst-reader.native
+++ b/tests/rst-reader.native
@@ -43,6 +43,8 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":",Space,Str
, CodeBlock ("",[],[]) "this code block is indented by one tab"
, Para [Str "And",Str ":"]
, CodeBlock ("",[],[]) "this block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
+, Para [Str "And",Str ":"]
+, CodeBlock ("",["sourceCode","python"],[]) "def my_function(x):\n return x + 1"
, Header 1 [Str "Lists"]
, Header 2 [Str "Unordered"]
, Para [Str "Asterisks",Space,Str "tight",Str ":"]