State the frontmatter line-break rule exactly
Name the separators the checker rejects and the end-of-file closing delimiter it accepts, and show that the rule stops at the frontmatter: a CRLF body and a frontmatter-only file still pass. Split frontmatter lines once and assert the exact rejection reason. Refs #20 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
45eff20ecb
commit
da34e1c1bf
3 files changed
+25
-10
No files matched your search
@@ -82,9 +82,11 @@ metadata:
|
||||
makes the package manual-only. Every key other than `metadata` is written
|
||||
`key: value` with a non-empty value. `metadata:` stands alone on its line,
|
||||
followed by exactly those two keys, each indented two spaces. The block has no
|
||||
blank or comment lines. The block and its `---` delimiters end each line with
|
||||
LF alone: CR, CRLF, and Unicode line separators fail the check. Any other key,
|
||||
such as `tools` or `allowed-tools`, fails the check.
|
||||
blank or comment lines. The block and its delimiters contain no line-break
|
||||
character other than LF (such as CR, vertical tab, form feed, or a Unicode
|
||||
line or paragraph separator), and the closing `---` ends with LF or the end of
|
||||
the file. This line-break rule does not apply to the Markdown body. Any other
|
||||
key, such as `tools` or `allowed-tools`, fails the check.
|
||||
|
||||
## Identity and archive
|
||||
|
||||
|
||||
Reference in new issue
Block a user