Commit e97aac0
committed
Clarify frontmatter position rule
The `frontmatter.document` rule said "Frontmatter may only be preceded
by a shebang and whitespace", where the "and" could be misread as
requiring both a shebang and whitespace rather than listing the set of
things allowed to precede frontmatter.
Since we merged the shebang prose revision (#2192),
the shebang position rule now reads as a positive statement of where
the shebang may appear. Let's follow the same pattern here: state
positively where frontmatter may appear rather than leaning on "only"
and a negative constraint.
We'll also rename the rule identifier to `frontmatter.position` in
keeping with our conventions.1 parent b4c5ec3 commit e97aac0
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
0 commit comments