getMdxFrontmatterVariableValue() — astro Function Reference
Architecture documentation for the getMdxFrontmatterVariableValue() function in rehype-collect-headings.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 6902e837_4b60_5ac8_9f68_532ce6abcccc["getMdxFrontmatterVariableValue()"] cabcee29_0c1e_3e48_86ec_bfe2c4e47f2c["rehype-collect-headings.ts"] 6902e837_4b60_5ac8_9f68_532ce6abcccc -->|defined in| cabcee29_0c1e_3e48_86ec_bfe2c4e47f2c 634cb6a1_87c1_3f69_eebe_1e03253219c2["rehypeHeadingIds()"] 634cb6a1_87c1_3f69_eebe_1e03253219c2 -->|calls| 6902e837_4b60_5ac8_9f68_532ce6abcccc style 6902e837_4b60_5ac8_9f68_532ce6abcccc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/markdown/remark/src/rehype-collect-headings.ts lines 116–126
function getMdxFrontmatterVariableValue(frontmatter: Record<string, any>, path: string[]) {
let value = frontmatter;
for (const key of path) {
if (!value[key]) return undefined;
value = value[key];
}
return value;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getMdxFrontmatterVariableValue() do?
getMdxFrontmatterVariableValue() is a function in the astro codebase, defined in packages/markdown/remark/src/rehype-collect-headings.ts.
Where is getMdxFrontmatterVariableValue() defined?
getMdxFrontmatterVariableValue() is defined in packages/markdown/remark/src/rehype-collect-headings.ts at line 116.
What calls getMdxFrontmatterVariableValue()?
getMdxFrontmatterVariableValue() is called by 1 function(s): rehypeHeadingIds.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free