diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-06-11 22:24:20 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-06-11 22:24:20 +0200 |
commit | b466152d6185750438f7355701ae68186692d65b (patch) | |
tree | ba2428d15d2f45fa94b42f1196e2bb202496732f /test/command | |
parent | d1da54a4c3138df6781dfe1d67a4d83d2f8adc61 (diff) | |
download | pandoc-b466152d6185750438f7355701ae68186692d65b.tar.gz |
Don't allow backslash + newline to affect block structure.
Note that as a result of this change, the following,
which formerly produced a header with two lines separated
by a line break, will now produce a header followed by a
paragraph:
# Hi\
there
This may affect some existing documents that relied on
this undocumented and unintended behavior.
This change makes pandoc more consistent with other
Markdown implementations, and with itself (since the two-space
version of a line break doesn't work inside ATX headers, and
neither version works inside Setext headers).
Closes #3730.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/3730.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/command/3730.md b/test/command/3730.md new file mode 100644 index 000000000..fbc06cbce --- /dev/null +++ b/test/command/3730.md @@ -0,0 +1,21 @@ +```` +% pandoc +nice line\ +``` +code +``` +^D +<p>nice line<br /> +</p> +<pre><code>code</code></pre> +```` + +``` +% pandoc +# hi\ +there +^D +<h1 id="hi">hi<br /> +</h1> +<p>there</p> +``` |