remarkTitle() — astro Function Reference
Architecture documentation for the remarkTitle() function in markdown-plugins.mjs from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 90b78b0d_d734_bf17_22a5_b11f506fb4a9["remarkTitle()"] 72032aa9_5e30_3548_73b9_3012708d821b["markdown-plugins.mjs"] 90b78b0d_d734_bf17_22a5_b11f506fb4a9 -->|defined in| 72032aa9_5e30_3548_73b9_3012708d821b style 90b78b0d_d734_bf17_22a5_b11f506fb4a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/fixtures/astro-markdown-frontmatter-injection/src/markdown-plugins.mjs lines 12–20
export function remarkTitle() {
return function (tree, { data }) {
visit(tree, ['heading'], (node) => {
if (node.depth === 1) {
data.astro.frontmatter.title = toString(node.children);
}
});
};
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does remarkTitle() do?
remarkTitle() is a function in the astro codebase, defined in packages/astro/test/fixtures/astro-markdown-frontmatter-injection/src/markdown-plugins.mjs.
Where is remarkTitle() defined?
remarkTitle() is defined in packages/astro/test/fixtures/astro-markdown-frontmatter-injection/src/markdown-plugins.mjs at line 12.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free