plugin to transform to preact, react, vue, etc
import {Fragment, createElement} from 'react'
-> import * as production from 'react/jsx-runtime'
,
then change .use(rehypeReact, {Fragment, createElement})
-> .use(rehypeReact, production)
,
and change the option fixTableCellAlign
-> tableCellAlignToStyle
@types/hast
, unified
, utilities, etc
migrate: update tooexports
migrate: don’t use private APIsFull Changelog: https://github.com/rehypejs/rehype-react/compare/7.2.0...8.0.0
fixTableCellAlign
option
by @jorroll in https://github.com/rehypejs/rehype-react/pull/48
Full Changelog: https://github.com/rehypejs/rehype-react/compare/7.1.2...7.2.0
th
, td
by @chitoku-k in https://github.com/rehypejs/rehype-react/pull/45
Full Changelog: https://github.com/rehypejs/rehype-react/compare/7.1.1...7.1.2
@types/react
17Full Changelog: https://github.com/rehypejs/rehype-react/compare/7.1.0...7.1.1
Full Changelog: https://github.com/rehypejs/rehype-react/compare/7.0.4...7.1.0
Full Changelog: https://github.com/rehypejs/rehype-react/compare/7.0.3...7.0.4
*.d.ts
filesFull Changelog: https://github.com/rehypejs/rehype-react/compare/7.0.2...7.0.3
Full Changelog: https://github.com/rehypejs/rehype-react/compare/7.0.1...7.0.2
Change:
// From CommonJS
var rehypeReact = require('rehype-react')
// To ESM
import rehypeReact from 'rehype-react'