cmark

My personal build of CMark ✏️

Commit
9a9a15312c443e4a4744023c196d57fbe40f8a05
Parent
5e9db2581e94efb497b9e5a22ce4ff98f9fd7de7
Author
John MacFarlane <jgm@berkeley.edu>
Date

Added clarification that hard breaks don't work at ends of blocks.

Closes #191.

Diffstat

1 file changed, 30 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified spec.txt 32 30 2
diff --git a/spec.txt b/spec.txt
@@ -6473,8 +6473,8 @@ Backslash escapes do not work in HTML attributes:
 ## Hard line breaks
 
 A line break (not in a code span or HTML tag) that is preceded
-by two or more spaces is parsed as a [hard line
-break](@hard-line-break) (rendered
+by two or more spaces and does not occur at the end of a block
+is parsed as a [hard line break](@hard-line-break) (rendered
 in HTML as a `<br />` tag):
 
 .
@@ -6577,6 +6577,34 @@ bar">
 bar"></p>
 .
 
+Hard line breaks are for separating inline content within a block.
+Neither syntax for hard line breaks works at the end of a paragraph or
+other block element:
+
+.
+foo\
+.
+<p>foo\</p>
+.
+
+.
+foo
+.
+<p>foo</p>
+.
+
+.
+### foo\
+.
+<h3>foo\</h3>
+.
+
+.
+### foo
+.
+<h3>foo</h3>
+.
+
 ## Soft line breaks
 
 A regular line break (not in a code span or HTML tag) that is not