0.4.1 • Published 4 months ago

rehype-jsx v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

rehype-jsx

npm version

Rehype Plugin to JSX

Install

npm install rehype-jsx

Usage

import rehype from 'rehype'
import rehypeJsx from 'rehype-jsx'

rehype()
  .data('settings', { fragment: true })
  .use(rehypeJsx)
  .process('<div>Hello World</div>')
  .then(({ value }) => {
    console.log(value) // <><div>{"Hello World"}</div></>;
  })

License

MIT

0.4.1

4 months ago

0.4.0

9 months ago

0.3.0

2 years ago

0.3.1

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.0.1

2 years ago