Skip to content

Warn when TOML front matter is encountered without TOML support - #135

Open
jackwalkerlabs wants to merge 1 commit into
eyeseast:mainfrom
jackwalkerlabs:codex/warn-missing-toml
Open

Warn when TOML front matter is encountered without TOML support#135
jackwalkerlabs wants to merge 1 commit into
eyeseast:mainfrom
jackwalkerlabs:codex/warn-missing-toml

Conversation

@jackwalkerlabs

Copy link
Copy Markdown

When TOML is not installed, loading a TOML post silently leaves its metadata inside Post.content. Emit one actionable warning during parsing, while preserving the existing fallback and keeping YAML/plain text quiet. Document the optional installation extra.

Fixes #101.

Validation: 57 tests pass; mypy passes. The fresh-interpreter regression fails on the base and passes with this change. Sphinx HTML builds successfully with configuration/duplicate-description warnings.

AI disclosure: Implemented, reviewed, and tested by OpenAI Codex under the account owner’s authorization; no human code review is claimed.

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.

Add warning when TOML is not available

1 participant