@mdx-js/mdx
MDX compiler
Last updated 4 years ago by wooorm .
MIT · Repository · Bugs · Original npm
$ cnpm install @mdx-js/mdx 
SYNC missed versions from official npm registry.

@mdx-js/mdx

Build Status lerna Chat

MDX implementation using remark.

Installation

npm:

npm i -S @mdx-js/mdx

Usage

const mdx = require('@mdx-js/mdx')

const result = await mdx(`
# Hello, MDX

I <3 Markdown and JSX
`)

console.log(result)

Yields:

export default ({components, ...props}) => (
  <MDXTag name="wrapper" components={components}>
    <MDXTag name="h1" components={components}>{`Hello, MDX`}</MDXTag>
    <MDXTag name="p" components={components}>{`I <3 Markdown and JSX`}</MDXTag>
  </MDXTag>
)

Contribute

See the Support and Contributing guidelines on the MDX website for ways to (get) help.

This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.

License

MIT © Compositor and Vercel

Current Tags

  • 2.0.0-ci.53                                ...           ci (4 years ago)
  • 2.3.0                                ...           latest (3 years ago)
  • 2.0.0-rc.2                                ...           next (4 years ago)

20 Versions

  • 2.3.0                                ...           3 years ago
  • 2.1.5                                ...           3 years ago
  • 2.1.2                                ...           3 years ago
  • 2.1.1                                ...           3 years ago
  • 2.0.0                                ...           4 years ago
  • 2.0.0-rc.2                                ...           4 years ago
  • 2.0.0-ci.53                                ...           4 years ago
  • 2.0.0-next.9                                ...           4 years ago
  • 2.0.0-ci.4                                ...           4 years ago
  • 1.6.22                                ...           5 years ago
  • 2.0.0-next.7                                ...           5 years ago
  • 1.6.16-ci.0                                ...           5 years ago
  • 1.6.16                                ...           5 years ago
  • 0.16.8                                ...           7 years ago
  • 0.9.0                                ...           7 years ago
  • 0.15.7                                ...           7 years ago
  • 2.0.0-next.1                                ...           5 years ago
  • 1.6.2-ci.1                                ...           5 years ago
  • 1.6.5                                ...           5 years ago
  • 1.6.1                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (15)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org