Skip to content

Add Markdown frontmatter support to the Visual Brief #3

Description

@yoldaolmak

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreCore pipeline primitivesenhancementNew feature or requestgood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions