Home / Function/ createMdxProcessor() — astro Function Reference

createMdxProcessor() — astro Function Reference

Architecture documentation for the createMdxProcessor() function in plugins.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  0dc520d4_0cd7_875c_4c70_cfd7a63069bf["createMdxProcessor()"]
  d7312c7b_f89c_b923_6191_574b373e0444["plugins.ts"]
  0dc520d4_0cd7_875c_4c70_cfd7a63069bf -->|defined in| d7312c7b_f89c_b923_6191_574b373e0444
  9f73fafe_a34d_773a_fdd7_99b0adfe799e["getRemarkPlugins()"]
  0dc520d4_0cd7_875c_4c70_cfd7a63069bf -->|calls| 9f73fafe_a34d_773a_fdd7_99b0adfe799e
  54d12754_919b_fe84_dc9c_2d1ec1efe916["getRehypePlugins()"]
  0dc520d4_0cd7_875c_4c70_cfd7a63069bf -->|calls| 54d12754_919b_fe84_dc9c_2d1ec1efe916
  style 0dc520d4_0cd7_875c_4c70_cfd7a63069bf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/mdx/src/plugins.ts lines 28–41

export function createMdxProcessor(mdxOptions: MdxOptions, extraOptions: MdxProcessorExtraOptions) {
	return createProcessor({
		remarkPlugins: getRemarkPlugins(mdxOptions),
		rehypePlugins: getRehypePlugins(mdxOptions),
		recmaPlugins: mdxOptions.recmaPlugins,
		remarkRehypeOptions: mdxOptions.remarkRehype,
		jsxImportSource: 'astro',
		// Note: disable `.md` (and other alternative extensions for markdown files like `.markdown`) support
		format: 'mdx',
		mdExtensions: [],
		elementAttributeNameCase: 'html',
		SourceMapGenerator: extraOptions.sourcemap ? SourceMapGenerator : undefined,
	});
}

Domain

Subdomains

Frequently Asked Questions

What does createMdxProcessor() do?
createMdxProcessor() is a function in the astro codebase, defined in packages/integrations/mdx/src/plugins.ts.
Where is createMdxProcessor() defined?
createMdxProcessor() is defined in packages/integrations/mdx/src/plugins.ts at line 28.
What does createMdxProcessor() call?
createMdxProcessor() calls 2 function(s): getRehypePlugins, getRemarkPlugins.

Analyze Your Own Codebase

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

Try Supermodel Free