summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-05-19 21:01:45 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-05-19 21:05:15 +0200
commitca77f0a95e03cace027a235ebbc1effa99ea030a (patch)
treed9b7b61a6249131f8a6dca27e859c8631d1b7663 /test
parent95c37d1e1f70ed1e4e48719c147488579399ecc0 (diff)
RST writer: add empty comments when needed...
to avoid including a blocquote in the indented content of a preceding block. Closes #3675.
Diffstat (limited to 'test')
-rw-r--r--test/command/3675.md15
-rw-r--r--test/writer.rst6
2 files changed, 21 insertions, 0 deletions
diff --git a/test/command/3675.md b/test/command/3675.md
new file mode 100644
index 000000000..b129c7a63
--- /dev/null
+++ b/test/command/3675.md
@@ -0,0 +1,15 @@
+````
+% pandoc -t rst
+```python
+print("hello")
+```
+> block quote
+^D
+.. code:: python
+
+ print("hello")
+
+..
+
+ block quote
+````
diff --git a/test/writer.rst b/test/writer.rst
index 1aeeacacb..1b2f6d1e9 100644
--- a/test/writer.rst
+++ b/test/writer.rst
@@ -75,6 +75,8 @@ E-mail style:
This is a block quote. It is pretty short.
+..
+
Code in a block quote:
::
@@ -92,6 +94,8 @@ E-mail style:
nested
+ ..
+
nested
This should not be a block quote: 2 > 1.
@@ -342,6 +346,8 @@ Multiple blocks with italics:
{ orange code block }
+ ..
+
orange block quote
Multiple definitions, tight: