rehypeMetaString() — astro Function Reference
Architecture documentation for the rehypeMetaString() function in rehype-meta-string.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD a1e8c5d6_ea5c_1ca6_5eae_77cced085e3b["rehypeMetaString()"] e1b8149b_6548_005c_4e5a_a60fe15b7cab["rehype-meta-string.ts"] a1e8c5d6_ea5c_1ca6_5eae_77cced085e3b -->|defined in| e1b8149b_6548_005c_4e5a_a60fe15b7cab style a1e8c5d6_ea5c_1ca6_5eae_77cced085e3b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/mdx/src/rehype-meta-string.ts lines 8–17
export default function rehypeMetaString() {
return function (tree: any) {
visit(tree, (node) => {
if (node.type === 'element' && node.tagName === 'code' && node.data?.meta) {
node.properties ??= {};
node.properties.metastring = node.data.meta;
}
});
};
}
Domain
Subdomains
Source
Frequently Asked Questions
What does rehypeMetaString() do?
rehypeMetaString() is a function in the astro codebase, defined in packages/integrations/mdx/src/rehype-meta-string.ts.
Where is rehypeMetaString() defined?
rehypeMetaString() is defined in packages/integrations/mdx/src/rehype-meta-string.ts at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free