Problem
The VisualBrief currently relies on headings for structure. Many articles carry standard YAML frontmatter (categories, tags, target audience) that should inform image selection context.
Scope
src/pictova/core/primitives.py — where VisualBrief.from_markdown() parses the article.
- Parse a leading YAML frontmatter block if present; ignore cleanly if absent or malformed.
- Pass frontmatter fields into the brief so downstream vision context can use them.
- Unit tests: with frontmatter, without, and with malformed frontmatter.
Acceptance criteria
- Frontmatter variables are available on the brief and reach the vision context block.
- Articles without frontmatter behave exactly as before.
Difficulty: Low · Credentials: None.
Problem
The
VisualBriefcurrently relies on headings for structure. Many articles carry standard YAML frontmatter (categories, tags, target audience) that should inform image selection context.Scope
src/pictova/core/primitives.py— whereVisualBrief.from_markdown()parses the article.Acceptance criteria
Difficulty: Low · Credentials: None.