Skip to content

Frontmatter enhancements#42

Merged
tsunaminoai merged 9 commits into
mainfrom
32-front-matter-extra-support
Mar 18, 2026
Merged

Frontmatter enhancements#42
tsunaminoai merged 9 commits into
mainfrom
32-front-matter-extra-support

Conversation

@sc2ben
Copy link
Copy Markdown
Contributor

@sc2ben sc2ben commented Mar 18, 2026

  • feat: add support for JSON and ZON frontmatter parsing; enhance tests for new formats
  • feat: add support for extracting frontmatter as JSON; update CLI options and handling
  • feat: add frontmatter parsing and serialization support; introduce new API functions
  • feat: add frontmatter serialization support for YAML, TOML, JSON, and ZON formats; enhance tests for round-trip verification
  • feat: add deep-merge and set functions for frontmatter; enhance tests for new functionality
  • feat: Enhance frontmatter handling and add Markdown renderer
  • feat: Add frontmatter editing capabilities with set, delete, and normalization options
  • feat: Update performance benchmarks in README and enhance benchmarking script

Resolves #32

… ZON formats; enhance tests for round-trip verification
- Introduced an internal arena allocator for managing memory in `FrontMatter` struct, allowing for efficient memory management during `set()` and `merge()` operations.
- Added a `delete()` function to remove keys from the frontmatter JSON structure.
- Implemented `bodyOffset()` to determine the starting byte offset of the Markdown body after frontmatter.
- Updated tests to reflect changes in the `set()` and `merge()` functions, removing the need for an external allocator.
- Added a new Markdown renderer that serializes an `AST.Document` back into normalized CommonMark + GFM Markdown, ensuring consistent formatting across various Markdown features.
- Suppressed verbose logging for the tokenizer and parser in the standard options to keep test outputs clean.
- Enhanced the spec runner to support a quiet mode, which suppresses output on successful runs and only displays results on failures.
@sc2ben sc2ben linked an issue Mar 18, 2026 that may be closed by this pull request
4 tasks
@tsunaminoai tsunaminoai added enhancement New feature or request labels Mar 18, 2026
@tsunaminoai tsunaminoai modified the milestone: V1.0.0 Mar 18, 2026
@tsunaminoai tsunaminoai merged commit 1ed6c1b into main Mar 18, 2026
2 checks passed
@tsunaminoai tsunaminoai deleted the 32-front-matter-extra-support branch March 18, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Front matter extra support

2 participants