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