Home / Function/ isMDXFile() — astro Function Reference

isMDXFile() — astro Function Reference

Architecture documentation for the isMDXFile() function in rehype-collect-headings.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  6e791592_3e53_d04b_b9e0_6aa65880f26d["isMDXFile()"]
  cabcee29_0c1e_3e48_86ec_bfe2c4e47f2c["rehype-collect-headings.ts"]
  6e791592_3e53_d04b_b9e0_6aa65880f26d -->|defined in| cabcee29_0c1e_3e48_86ec_bfe2c4e47f2c
  634cb6a1_87c1_3f69_eebe_1e03253219c2["rehypeHeadingIds()"]
  634cb6a1_87c1_3f69_eebe_1e03253219c2 -->|calls| 6e791592_3e53_d04b_b9e0_6aa65880f26d
  style 6e791592_3e53_d04b_b9e0_6aa65880f26d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/markdown/remark/src/rehype-collect-headings.ts lines 76–78

function isMDXFile(file: VFile) {
	return Boolean(file.history[0]?.endsWith('.mdx'));
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isMDXFile() do?
isMDXFile() is a function in the astro codebase, defined in packages/markdown/remark/src/rehype-collect-headings.ts.
Where is isMDXFile() defined?
isMDXFile() is defined in packages/markdown/remark/src/rehype-collect-headings.ts at line 76.
What calls isMDXFile()?
isMDXFile() is called by 1 function(s): rehypeHeadingIds.

Analyze Your Own Codebase

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

Try Supermodel Free