HTML processor powered by plugins part of the @unifiedjs collective
Change:
// From CommonJS
var rehype = require('rehype')
// To ESM
import {rehype} from 'rehype'
// Or:
var rehypeParse = require('rehype-parse') // => import rehypeParse from 'rehype-parse'
var rehypeStringify = require('rehype-stringify') // => import rehypeStringify from 'rehype-stringify'
unified
(10.0.0)
See: https://github.com/unifiedjs/unified/releases/tag/10.0.0
vfile
(5.0.0)
See: https://github.com/vfile/vfile/releases/tag/5.0.0
Importantly this renames vfile.contents
vfile.value
hast-util-from-parse5
(7.0.0)
See: https://github.com/syntax-tree/hast-util-from-parse5/releases/tag/7.0.0
Importantly this removes support for non-HTML doctypes
Use xast if you’re not using HTMLhast-util-to-html
(8.0.0)
See: https://github.com/syntax-tree/hast-util-to-html/releases/tag/8.0.0
Importantly this removes support for non-HTML doctypes
Use xast if you’re not using HTMLposition
optionmaster
in linksparse5