Skip to content

fix(docs): quote summary values containing colons in front matter - #123

Merged
drawmeanelephant merged 2 commits into
mainfrom
fix/frontmatter-yaml-summary-quoting
Aug 25, 2026
Merged

drawmeanelephant merged 2 commits into
mainfrom
fix/frontmatter-yaml-summary-quoting

Conversation

@drawmeanelephant

Copy link
Copy Markdown
Owner

Problem

Viewing any affected doc on GitHub showed:

Error in user YAML: (): mapping values are not allowed in this context at line 2 column 33

The summary: front-matter values contained an unquoted colon-space
(e.g. Oliver's feature matrix: implemented, ...), which YAML parses as a
nested mapping indicator. The published_at timestamps were fine.

Fix

Double-quote the summary value in all 21 affected docs (values contain
apostrophes, so double quotes avoid single-quote escaping).

Verification

  • PyYAML now parses the front matter of every .md in the repo as a mapping
    with the expected keys, including duplicate-key detection.
  • Swept standalone .yml/.yaml and .json files: all valid.
  • tests/fixtures/markdown/frontmatter-unclosed.md is intentionally
    unterminated (parser fixture) and was left alone.

GitHub's YAML front-matter renderer rejected every doc whose summary
value contained a colon-space ("mapping values are not allowed in this
context"). Quote the 21 affected summary values so all doc front
matter parses as valid YAML.
@drawmeanelephant
drawmeanelephant merged commit f1fbb1c into main Aug 25, 2026
3 checks passed
@drawmeanelephant
drawmeanelephant deleted the fix/frontmatter-yaml-summary-quoting branch August 25, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant