mdx-to-markdown
Installation
SKILL.md
MDX to Markdown
Overview
Use this skill to produce plain Markdown from MDX without requiring the target renderer to understand MDX imports, JSX components, Rspress anchors, or code-block metadata.
Workflow
- Identify the source
.mdxand target.mdpath. If the user gives only a source path, default the output to the same path with.md. - Inspect the MDX for non-Markdown constructs:
- YAML frontmatter.
- top-level
importlines. - custom components such as
<BlogAuthors />and<PackageManagerTabs />. - heading anchors like
### Title \{#title}. - standalone HTML anchors like
<a id="title"></a>. - fenced code block titles such as a JavaScript fence with
title="env.js". - HTML image wrappers such as centered
<div><img ... /></div>.
- Run the helper script when the requested conversion matches the default rules: