feat: Complete Issue #41 - Add TOML frontmatter support

- Enhanced frontmatter parser to detect and parse TOML format
- Added TOML format detection heuristics before YAML parsing
- Created TOML test fixture with nested sections
- Fixed parsing order to prevent TOML-to-string conversion
- All frontmatter formats (YAML, JSON, TOML) now fully supported
- Validated all acceptance criteria for Issue #41

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-02 09:32:16 +02:00
parent 494e1b7128
commit cde2805078
2 changed files with 57 additions and 12 deletions

View File

@@ -0,0 +1,29 @@
---
title = "TOML Frontmatter Test Document"
author = "Test Author"
date = "2025-10-02"
tags = ["toml", "frontmatter", "testing"]
version = 1.4
published = true
[config]
theme = "light"
language = "en"
debug = false
[features]
search = true
toc = true
navigation = true
---
# TOML Frontmatter Test Document
This document uses TOML format for frontmatter instead of YAML or JSON.
The frontmatter parser should handle TOML format correctly and extract values like:
- title: "TOML Frontmatter Test Document"
- config.theme: "light"
- features.search: true
This tests the parser's ability to handle all three frontmatter formats as required by Issue #41.