Skip to content

Commit 32535a2

Browse files
committed
Clarify the fence description
The fence description uses the phrase "a matching pair of hyphens", which can be misread as describing exactly two individual hyphens. The constraints on fence length and matching are also compressed into a single sentence with a trailing subclause ("from 3 to 255") that reads as nonrestrictive. Let's give each constraint its own sentence: what a fence is, where it must appear, the length bounds on the opening fence, the matching requirement for the closing fence, and trailing whitespace. This makes the structure clearer.
1 parent 024c03a commit 32535a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/frontmatter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ r[frontmatter.document]
5454
Frontmatter may only be preceded by a [shebang] and [whitespace].
5555

5656
r[frontmatter.fence]
57-
The delimiters are referred to as a *fence*. The opening and closing fences must be at the start of a line. They must be a matching pair of hyphens (`-`), from 3 to 255. A 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]
6060
Following the opening fence may be an infostring for identifying the intention of the contained content. An infostring may be followed by horizontal whitespace.

0 commit comments

Comments
 (0)