remarkTitle() — astro Function Reference
Architecture documentation for the remarkTitle() function in markdown-plugins.mjs from the astro codebase.
Entity Profile
Dependency Diagram
graph TD ea618e8e_ef21_424e_6a32_f26be8be805e["remarkTitle()"] 0fdd4779_1d21_90e2_0116_3edba4f23d0d["markdown-plugins.mjs"] ea618e8e_ef21_424e_6a32_f26be8be805e -->|defined in| 0fdd4779_1d21_90e2_0116_3edba4f23d0d style ea618e8e_ef21_424e_6a32_f26be8be805e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/mdx/test/fixtures/mdx-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/integrations/mdx/test/fixtures/mdx-frontmatter-injection/src/markdown-plugins.mjs.
Where is remarkTitle() defined?
remarkTitle() is defined in packages/integrations/mdx/test/fixtures/mdx-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