Skip to content

Fix Docs YAML frontmatter parsing#868

Open
amadad wants to merge 2 commits into
ymichael:mainfrom
amadad:fix/docs-yaml-frontmatter
Open

Fix Docs YAML frontmatter parsing#868
amadad wants to merge 2 commits into
ymichael:mainfrom
amadad:fix/docs-yaml-frontmatter

Conversation

@amadad

@amadad amadad commented Jul 25, 2026

Copy link
Copy Markdown

Summary

  • parse fenced YAML frontmatter through one shared Docs boundary
  • use a string frontmatter title (or the document H1) for navigation and mentions
  • keep frontmatter out of the rich editor and previews while preserving it byte-for-byte on save
  • keep frontmatter-managed filenames stable instead of auto-renaming them

Problem

Docs previously derived a note title from the first raw Markdown line and passed the whole file to Tiptap. Wiki pages therefore appeared as repeated --- entries, rendered metadata as document content, and risked rewriting frontmatter after an edit.

Verification

  • pnpm exec turbo run test --filter=bb-plugin-simple-notes --force — 46 passed
  • pnpm exec turbo run typecheck --filter=bb-plugin-simple-notes --force — passed
  • pnpm exec turbo run build --filter=bb-app --force — passed
  • pnpm exec turbo run smoke:tarball --filter=bb-app --force — passed
  • exercised against a 433-document Markdown vault — zero delimiter-derived titles

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