Skip to content

Render the frontmatter as a table in the viewer - #17

Merged
CiprianFlorin-Ifrim merged 1 commit into
mainfrom
feat/frontmatter-table
Oct 23, 2026
Merged

CiprianFlorin-Ifrim merged 1 commit into
mainfrom
feat/frontmatter-table

Conversation

@CiprianFlorin-Ifrim

@CiprianFlorin-Ifrim CiprianFlorin-Ifrim commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

The viewer showed a document's frontmatter as highlighted YAML, which leaves the reader to parse nested maps and lists by indentation. It now opens on a table in the style of the side panel, and a switch above the table shows the raw YAML.

Notes

  • A nested map sits under a thin rule, a list becomes tags, and an author, a status and a time take the forms the panel already gives them.
  • Each nested block opens on who wrote it, so a source reads in the same order as the by blocks above it.
  • Every value is set in IBM Plex Sans at 13px and every key in IBM Plex Mono. Plex Mono is about 19% wider at the same size, so mixed values looked bigger and smaller next to each other.

Tests

Suite Result
Vitest 43 passed

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

The viewer showed a document's frontmatter as highlighted YAML, which leaves the reader to parse nested maps and lists by indentation. It now opens on a table in the style of the side panel, where a nested map sits under a thin rule, a list becomes tags, and an author, a status and a time take the forms the panel already gives them. Each nested block opens on who wrote it, and a switch above the table shows the raw YAML.
@CiprianFlorin-Ifrim
CiprianFlorin-Ifrim merged commit 1d79f89 into main Oct 23, 2026
5 checks passed
@CiprianFlorin-Ifrim
CiprianFlorin-Ifrim deleted the feat/frontmatter-table branch October 23, 2026 01:33
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