Home / Function/ isMdxComponentNode() — astro Function Reference

isMdxComponentNode() — astro Function Reference

Architecture documentation for the isMdxComponentNode() function in rehype-optimize-static.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  893ecef5_14a8_82b0_1724_42530072391e["isMdxComponentNode()"]
  36422914_2d7c_adeb_c777_76a007e3cb87["rehype-optimize-static.ts"]
  893ecef5_14a8_82b0_1724_42530072391e -->|defined in| 36422914_2d7c_adeb_c777_76a007e3cb87
  d6e3dc2a_c11c_d2d3_2b99_f6aee60fd384["rehypeOptimizeStatic()"]
  d6e3dc2a_c11c_d2d3_2b99_f6aee60fd384 -->|calls| 893ecef5_14a8_82b0_1724_42530072391e
  5c90d957_b7b9_18dc_7085_ecc7ecd641ba["simplifyPlainMdxComponentNode()"]
  5c90d957_b7b9_18dc_7085_ecc7ecd641ba -->|calls| 893ecef5_14a8_82b0_1724_42530072391e
  style 893ecef5_14a8_82b0_1724_42530072391e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/mdx/src/rehype-optimize-static.ts lines 243–245

function isMdxComponentNode(node: Node): node is MdxJsxFlowElementHast | MdxJsxTextElementHast {
	return node.type === 'mdxJsxFlowElement' || node.type === 'mdxJsxTextElement';
}

Domain

Subdomains

Frequently Asked Questions

What does isMdxComponentNode() do?
isMdxComponentNode() is a function in the astro codebase, defined in packages/integrations/mdx/src/rehype-optimize-static.ts.
Where is isMdxComponentNode() defined?
isMdxComponentNode() is defined in packages/integrations/mdx/src/rehype-optimize-static.ts at line 243.
What calls isMdxComponentNode()?
isMdxComponentNode() is called by 2 function(s): rehypeOptimizeStatic, simplifyPlainMdxComponentNode.

Analyze Your Own Codebase

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

Try Supermodel Free