This package has been deprecated

Author message:

Deprecated: use `evaluate` from `@mdx-js/mdx` instead

@mdx-js/runtime

2.0.0 • Public • Published

@mdx-js/runtime

Deprecated: this package is no longer maintained.

You can use @mdx-js/mdx itself to compile and run:

import {evaluate} from '@mdx-js/mdx'
import * as runtime from 'react/jsx-runtime'

const components = {
  h1: props => <h1 style={{color: 'tomato'}} {...props} />
}

const document = `
# Hello, world!
`

const {default: Content} = await evaluate(document, runtime)

console.log(<Content components={components} />)

Readme

Keywords

none

Package Sidebar

Install

npm i @mdx-js/runtime

Weekly Downloads

8,196

Version

2.0.0

License

none

Unpacked Size

642 B

Total Files

2

Last publish

Collaborators

  • johno
  • remcohaszing
  • timneutkens
  • wooorm