extractFrontmatter() — astro Function Reference
Architecture documentation for the extractFrontmatter() function in frontmatter.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1a1e8aea_c0f2_f6da_65b3_920d02af3f9e["extractFrontmatter()"] 527bec49_26ec_0a56_3702_bf73cfac4e0b["frontmatter.ts"] 1a1e8aea_c0f2_f6da_65b3_920d02af3f9e -->|defined in| 527bec49_26ec_0a56_3702_bf73cfac4e0b ace3779e_c455_f555_b47c_50715d6feef3["parseFrontmatter()"] ace3779e_c455_f555_b47c_50715d6feef3 -->|calls| 1a1e8aea_c0f2_f6da_65b3_920d02af3f9e style 1a1e8aea_c0f2_f6da_65b3_920d02af3f9e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/markdown/remark/src/frontmatter.ts lines 20–22
export function extractFrontmatter(code: string): string | undefined {
return frontmatterRE.exec(code)?.[1];
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does extractFrontmatter() do?
extractFrontmatter() is a function in the astro codebase, defined in packages/markdown/remark/src/frontmatter.ts.
Where is extractFrontmatter() defined?
extractFrontmatter() is defined in packages/markdown/remark/src/frontmatter.ts at line 20.
What calls extractFrontmatter()?
extractFrontmatter() 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