This commit is contained in:
10
node_modules/mdast-util-to-hast/lib/handlers/html.js
generated
vendored
Normal file
10
node_modules/mdast-util-to-hast/lib/handlers/html.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = html
|
||||
|
||||
var u = require('unist-builder')
|
||||
|
||||
// Return either a `raw` node, in dangerous mode, or nothing.
|
||||
function html(h, node) {
|
||||
return h.dangerous ? h.augment(node, u('raw', node.value)) : null
|
||||
}
|
||||
Reference in New Issue
Block a user