Parse a string containing optional YAML frontmatter.
Supports two layouts (in this order):
Standard: starts with ---, YAML, then --- separator, then body.
Legacy: starts directly with YAML, then --- separator, then body.
The legacy form is preserved so existing on-disk files written by older
Theia versions (e.g. task-context summaries) continue to parse without a
migration step.
Parse a string containing optional YAML frontmatter.
Supports two layouts (in this order):
---, YAML, then---separator, then body.---separator, then body.The legacy form is preserved so existing on-disk files written by older Theia versions (e.g. task-context summaries) continue to parse without a migration step.