11 lines
228 B
JavaScript
11 lines
228 B
JavaScript
'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
|
|
}
|