@aitodotai/mdx-js-mdx

0.19.0-alpha.0 • Public • Published

@mdx-js/mdx

Build Status lerna Join the community on Spectrum

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 contributing.md in mdx-js/mdx for ways to get started.

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

License

MIT © Compositor and ZEIT

Package Sidebar

Install

npm i @aitodotai/mdx-js-mdx

Homepage

mdxjs.com

Weekly Downloads

0

Version

0.19.0-alpha.0

License

MIT

Unpacked Size

16.3 kB

Total Files

8

Last publish

Collaborators

  • cventus
  • kaiinkinen
  • tri.nguyen
  • phuch
  • ollkan
  • kimmobrunfeldt