MCPcopy
hub / github.com/mdx-js/mdx

github.com/mdx-js/mdx @3.1.1 sqlite

repository ↗ · DeepWiki ↗ · release 3.1.1 ↗
144 symbols 505 edges 81 files 50 documented · 35%
README

MDX

Markdown for the component era

Build Coverage Sponsors Backers Chat

MDX is an authorable format that lets you seamlessly write JSX in your markdown documents. You can import components, such as interactive charts or alerts, and embed them within your content. This makes writing long-form content with components a blast. 🚀

import {Chart} from './snowfall.js'
export const year = 2013

# Last year’s snowfall

In {year}, the snowfall was above average.
It was followed by a warm spring which caused
flood conditions in many of the nearby rivers.

<Chart year={year} color="#fcb32c" />

See § What is MDX for more info on the format. See § Playground to try it out.

What is this?

This GitHub repository contains several packages for compiling the MDX format to JavaScript, integrating with bundlers such as webpack and Rollup, and for using it with frameworks such as React, Preact, and Vue.

See § Getting started for how to integrate MDX into your project.

Security

See § Security on our site for information.

Contribute

See § Contribute on our site for ways to get started. See § Support for ways to get help.

This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.

Sponsor

See § Sponsor on our site for how to help financially.

Vercel Motif HashiCorp GitBook Gatsby
Netlify Coinbase ThemeIsle Expo Boost Note Markdown Space Holloway
You?

License

MIT © Compositor and Vercel

Extension points exported contracts — how you extend this code

EsastData (Interface)
(no doc)
packages/mdx/lib/types.d.ts
BaseNode (Interface)
(no doc)
website/types.d.ts
EsastCommentData (Interface)
(no doc)
packages/mdx/lib/types.d.ts
ElementData (Interface)
(no doc)
website/types.d.ts
BaseNode (Interface)
(no doc)
packages/mdx/lib/types.d.ts
DataMapMeta (Interface)
(no doc)
website/types.d.ts
Comment (Interface)
(no doc)
packages/mdx/lib/types.d.ts
DataMap (Interface)
(no doc)
website/types.d.ts

Core symbols most depended-on inside this repo

compile
called by 142
packages/mdx/lib/compile.js
run
called by 103
packages/mdx/test/context/run.js
evaluate
called by 41
packages/mdx/lib/evaluate.js
runWhole
called by 13
packages/mdx/test/context/run.js
createProcessor
called by 8
packages/mdx/lib/core.js
toIdOrMemberExpression
called by 8
packages/mdx/lib/util/estree-util-to-id-or-member-expression.js
create
called by 8
packages/mdx/lib/util/estree-util-create.js
vueToString
called by 8
packages/vue/test/index.js

Shape

Function 133
Interface 11

Languages

TypeScript100%

Modules by API surface

docs/_asset/editor.jsx11 symbols
packages/mdx/test/compile.js8 symbols
packages/mdx/lib/plugin/recma-document.js8 symbols
packages/mdx/lib/types.d.ts7 symbols
website/mdx-loader.js6 symbols
packages/mdx/lib/plugin/recma-jsx-rewrite.js6 symbols
website/types.d.ts4 symbols
packages/vue/lib/index.js4 symbols
packages/node-loader/lib/index.js4 symbols
packages/esbuild/test/index.js4 symbols
packages/esbuild/lib/index.js4 symbols
docs/_component/layout.jsx4 symbols

Dependencies from manifests, versioned

@babel/types7.0.0 · 1×
@docsearch/css3.0.0 · 1×
@docsearch/js3.0.0 · 1×
@floating-ui/dom1.0.0 · 1×
@mdx-js/mdx3.0.0 · 1×
@next/mdx15.0.0 · 1×
@node-loader/core2.0.0 · 1×
@rollup/plugin-babel6.0.0 · 1×
@rollup/pluginutils5.0.0 · 1×
@sparticuz/chromium138.0.0 · 1×
@types/babel__core7.0.0 · 1×
@types/dlv1.0.0 · 1×

For agents

$ claude mcp add mdx \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact