Skip to content

Commit 6dcef52

Browse files
committed
Clarify the body restrictions
The body restriction sentence combines two unrelated constraints -- the hyphen-line restriction and the carriage-return ban -- in a single sentence joined by "or". This makes "or carriage returns" read as parallel to "hyphens", as though the line could maybe start with carriage returns. Let's split these into two separate sentences so that each constraint stands on its own.
1 parent f3c7377 commit 6dcef52

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/frontmatter.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ r[frontmatter.infostring]
6060
The opening fence, after optional horizontal whitespace, may be followed by an infostring that identifies the format or purpose of the body. An infostring may be followed by horizontal whitespace.
6161

6262
r[frontmatter.body]
63-
The body of the frontmatter may contain any content except for a line starting with as many or more hyphens (`-`) than in the fences or carriage returns.
63+
No line in the body may start with a sequence of hyphens (`-`) equal to or longer than the opening fence. The body may not contain any carriage returns (that survive [CRLF normalization]).
6464

65+
[CRLF normalization]: input.crlf
6566
[shebang]: input-format.md#shebang-removal
6667
[whitespace]: whitespace.md

0 commit comments

Comments
 (0)