When optimizing local markdown files with /geo:optimize, preserve frontmatter (YAML/TOML) instead of treating it as content.
Example:
Input:
---
title: My Page
description: My description
---
# Content here
Expected: Frontmatter preserved, only "Content here" optimized.
What's needed:
- Detect frontmatter in markdown files
- Parse and preserve it separately
- Only optimize the content body
- Reassemble with original frontmatter
Resources:
When optimizing local markdown files with
/geo:optimize, preserve frontmatter (YAML/TOML) instead of treating it as content.Example:
Input:
Expected: Frontmatter preserved, only "Content here" optimized.
What's needed:
Resources: