Files
kebab/fixtures/markdown/frontmatter-only.md
altair823 42a7d53e5d p1-2: fixtures + snapshot tests for frontmatter parser
Two markdown fixtures with hand-authored JSON baselines that pin the
§0 Q9 derive output across runs:

- frontmatter-only.md exercises the YAML happy path with most fields,
  unknown keys, an `id:` field, and a non-UTC created_at (so the
  baseline shows original_timestamps preservation).
- mixed-lang.md is body-only with no `lang:` field; baseline pins the
  lingua autodetect result for our enabled language set.

A separate `emit_snapshots` test (marked `#[ignore]`) regenerates the
baselines from the current parser output. A determinism test parses
the fixture twice and asserts equality so any non-determinism (e.g.
key ordering, lingua nondeterminism) fails fast.
2026-04-30 12:56:19 +00:00

23 lines
316 B
Markdown

---
title: Frontmatter Only
aliases:
- fm-only
- first-fixture
tags:
- parse
- test
lang: en
created_at: 2024-01-15T10:00:00+09:00
updated_at: 2024-02-20T08:30:00Z
source_type: note
trust_level: secondary
id: my-stable-handle
custom_field: hello
nested_obj:
key: value
---
# Body Heading
Body paragraph.