aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-14 17:12:06 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-14 17:12:06 -0700
commit88faa45f1d294690ad97b7f45a75c89c65227cf1 (patch)
tree653a304d5c6f5b3c5f5c9234662ba6998a3d70f4 /test
parentab3e41c8224db35a1617b5c4be39c14fc20dc583 (diff)
downloadpandoc-88faa45f1d294690ad97b7f45a75c89c65227cf1.tar.gz
Markdown writer: ensure blank between raw block and normal content.
Otherwise a raw block can prevent a paragraph from being recognized as such. Closes #4629.
Diffstat (limited to 'test')
-rw-r--r--test/command/macros.md4
-rw-r--r--test/writer.markdown4
2 files changed, 8 insertions, 0 deletions
diff --git a/test/command/macros.md b/test/command/macros.md
index d091c2191..50393543a 100644
--- a/test/command/macros.md
+++ b/test/command/macros.md
@@ -4,6 +4,7 @@
$\my+\my$
^D
\newcommand{\my}{\phi}
+
$\phi+\phi$
```
@@ -13,6 +14,7 @@ $\phi+\phi$
$\my+\my$
^D
\newcommand{\my}{\phi}
+
$\my+\my$
```
@@ -75,6 +77,7 @@ x &= y\\\end{aligned}\]
\end{equation}
^D
\newcommand{\my}{\phi}
+
\begin{equation}
\phi+\phi
\end{equation}
@@ -88,6 +91,7 @@ x &= y\\\end{aligned}\]
\end{equation}
^D
\newcommand{\my}{\phi}
+
\begin{equation}
\my+\my
\end{equation}
diff --git a/test/writer.markdown b/test/writer.markdown
index 0cc465f1e..de0821970 100644
--- a/test/writer.markdown
+++ b/test/writer.markdown
@@ -409,6 +409,7 @@ And this is **strong**
</tr>
</table>
<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
+
Here's a simple block:
<div>
@@ -446,6 +447,7 @@ foo
This should just be an HTML comment:
<!-- Comment -->
+
Multiline:
<!--
@@ -455,6 +457,7 @@ Blah
<!--
This is another comment.
-->
+
Code block:
<!-- Comment -->
@@ -462,6 +465,7 @@ Code block:
Just plain comment, with trailing spaces on the line:
<!-- foo -->
+
Code:
<hr />