From b466152d6185750438f7355701ae68186692d65b Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 11 Jun 2017 22:24:20 +0200 Subject: 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. --- test/command/3730.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/command/3730.md (limited to 'test/command') 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 +

nice line
+

+
code
+```` + +``` +% pandoc +# hi\ +there +^D +

hi
+

+

there

+``` -- cgit v1.2.3