Skip to content

Commit 7a9f99b

Browse files
committed
Link horizontal whitespace to the grammar rule
The prose mentions "horizontal whitespace" in two places (fence trailing content and infostring trailing content) without linking to the grammar definition. Since `HORIZONTAL_WHITESPACE` is now a defined rule in Whitespace, let's add a link so readers can click through to the precise definition.
1 parent 6dcef52 commit 7a9f99b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/frontmatter.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,15 @@ r[frontmatter.document]
5454
Frontmatter may only be preceded by a [shebang] and [whitespace].
5555

5656
r[frontmatter.fence]
57-
Frontmatter must start and end with a *fence*. Each fence must start at the beginning of a line. The opening fence must consist of at least 3 and no more than 255 hyphens (`-`). The closing fence must have exactly the same number of hyphens as the opening fence. The hyphens of either fence may be followed by horizontal whitespace.
57+
Frontmatter must start and end with a *fence*. Each fence must start at the beginning of a line. The opening fence must consist of at least 3 and no more than 255 hyphens (`-`). The closing fence must have exactly the same number of hyphens as the opening fence. The hyphens of either fence may be followed by [horizontal whitespace].
5858

5959
r[frontmatter.infostring]
60-
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.
60+
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]
6363
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

6565
[CRLF normalization]: input.crlf
66+
[horizontal whitespace]: grammar-HORIZONTAL_WHITESPACE
6667
[shebang]: input-format.md#shebang-removal
6768
[whitespace]: whitespace.md

0 commit comments

Comments
 (0)