Skip to content

Commit

Permalink
Update mdast-util-to-hast
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 3, 2020
1 parent bdeeee5 commit 7a8cb0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ function plugin(options) {

function compiler(node, file) {
var root = node && node.type && node.type === 'root'
var hast = toHast(node, {
allowDangerousHtml: !clean,
handlers: handlers,
commonmark: true
})
var hast = toHast(node, {allowDangerousHtml: !clean, handlers: handlers})
var result

if (file.extname) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"hast-util-sanitize": "^3.0.0",
"hast-util-to-html": "^7.0.0",
"mdast-util-to-hast": "^9.0.0"
"mdast-util-to-hast": "^10.0.0"
},
"devDependencies": {
"browserify": "^16.0.0",
Expand Down

0 comments on commit 7a8cb0e

Please sign in to comment.