Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

293 B
Raw Blame
import matter from 'gray-matter'
import yaml from 'js-yaml'

export function parseFrontmatter(content) {
  return matter(content, {
    schema: yaml.JSON_SCHEMA,
    engines: {
      javascript: () => {
        throw new Error('JavaScript frontmatter is not supported')
      },
    },
  })
}