Skip to content

FOLLOW-UP: Eliminate double frontmatter parse in ParseFile (from PR #207) #212

@adnaan

Description

@adnaan

Context

This follow-up task was identified during the review of PR #207.

Source PR: #207
PR Title: feat: auto-tables — infer interactive UI from markdown tables + YAML sources
Suggested by: @claude[bot]

Task Description

ParseFile in page.go calls extractFrontmatter to get sources for auto-table matching, then ParseMarkdownWithPartials parses the same frontmatter again. This is a minor performance concern.

Fix: Thread the already-parsed frontmatter/sources through the preprocessing pipeline instead of re-parsing. This would require refactoring ParseFile to extract frontmatter once and pass it to both preprocessAutoTables and ParseMarkdownWithPartials.


This issue was automatically created by prmonitor from PR review comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-lowLow: extended features, operational docsfollow-upFollow-up task from PR reviewfrom-reviewIssue originated from PR review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions