Home / Function/ getFrontmatterParser() — astro Function Reference

getFrontmatterParser() — astro Function Reference

Architecture documentation for the getFrontmatterParser() function in frontmatter.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  14ceab37_b9aa_c45b_2a05_7558b5212412["getFrontmatterParser()"]
  527bec49_26ec_0a56_3702_bf73cfac4e0b["frontmatter.ts"]
  14ceab37_b9aa_c45b_2a05_7558b5212412 -->|defined in| 527bec49_26ec_0a56_3702_bf73cfac4e0b
  ace3779e_c455_f555_b47c_50715d6feef3["parseFrontmatter()"]
  ace3779e_c455_f555_b47c_50715d6feef3 -->|calls| 14ceab37_b9aa_c45b_2a05_7558b5212412
  style 14ceab37_b9aa_c45b_2a05_7558b5212412 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/markdown/remark/src/frontmatter.ts lines 24–26

function getFrontmatterParser(code: string): [string, (str: string) => unknown] {
	return frontmatterTypeRE.exec(code)?.[1] === '+++' ? ['+++', toml.parse] : ['---', yaml.load];
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getFrontmatterParser() do?
getFrontmatterParser() is a function in the astro codebase, defined in packages/markdown/remark/src/frontmatter.ts.
Where is getFrontmatterParser() defined?
getFrontmatterParser() is defined in packages/markdown/remark/src/frontmatter.ts at line 24.
What calls getFrontmatterParser()?
getFrontmatterParser() is called by 1 function(s): parseFrontmatter.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free