Home / Function/ rehypeReadingTime() — astro Function Reference

rehypeReadingTime() — astro Function Reference

Architecture documentation for the rehypeReadingTime() function in markdown-plugins.mjs from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  f61a176d_f118_a4ea_8afe_fa06e3c553e7["rehypeReadingTime()"]
  0fdd4779_1d21_90e2_0116_3edba4f23d0d["markdown-plugins.mjs"]
  f61a176d_f118_a4ea_8afe_fa06e3c553e7 -->|defined in| 0fdd4779_1d21_90e2_0116_3edba4f23d0d
  style f61a176d_f118_a4ea_8afe_fa06e3c553e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/mdx/test/fixtures/mdx-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

Frequently Asked Questions

What does rehypeReadingTime() do?
rehypeReadingTime() is a function in the astro codebase, defined in packages/integrations/mdx/test/fixtures/mdx-frontmatter-injection/src/markdown-plugins.mjs.
Where is rehypeReadingTime() defined?
rehypeReadingTime() is defined in packages/integrations/mdx/test/fixtures/mdx-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