---
title: extractFrontmatter
description: >-
  Markdown parsing utilities — ported from @svartz/vault parse.ts. Kept
  Effect-free for plugin authors.
updated_at: '2026-11-19T23:56:18+01:00'
created_at: '2026-03-07T03:07:51+01:00'
symbol:
  kind: function
  name: extractFrontmatter
  signatures:
    - >-
      extractFrontmatter(content: string): { frontmatter?: Record<string,
      unknown>; bodyMarkdown: string }
  parameters:
    - name: content
      type: string
  returns:
    type: '{ frontmatter?: Record<string, unknown>; bodyMarkdown: string }'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugins/src/internal/parse.ts#L26
---

# extractFrontmatter
