Home / Function/ rehypeExamplePlugin() — astro Function Reference

rehypeExamplePlugin() — astro Function Reference

Architecture documentation for the rehypeExamplePlugin() function in mdx-plugins.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  fca6c176_a1ad_ad7d_c91e_b945e5dffe7b["rehypeExamplePlugin()"]
  e8760276_ae78_8548_876c_cdc1c14c40af["mdx-plugins.test.js"]
  fca6c176_a1ad_ad7d_c91e_b945e5dffe7b -->|defined in| e8760276_ae78_8548_876c_cdc1c14c40af
  style fca6c176_a1ad_ad7d_c91e_b945e5dffe7b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/mdx/test/mdx-plugins.test.js lines 243–251

function rehypeExamplePlugin() {
	return (tree) => {
		tree.children.push({
			type: 'element',
			tagName: 'div',
			properties: { 'data-rehype-plugin-works': 'true' },
		});
	};
}

Domain

Subdomains

Frequently Asked Questions

What does rehypeExamplePlugin() do?
rehypeExamplePlugin() is a function in the astro codebase, defined in packages/integrations/mdx/test/mdx-plugins.test.js.
Where is rehypeExamplePlugin() defined?
rehypeExamplePlugin() is defined in packages/integrations/mdx/test/mdx-plugins.test.js at line 243.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free