Files
30-seconds-of-code/node_modules/hast-util-to-html/lib/raw.js
2019-08-20 15:52:05 +02:00

11 lines
171 B
JavaScript

'use strict'
var text = require('./text')
module.exports = raw
/* Stringify `raw`. */
function raw(ctx, node) {
return ctx.dangerous ? node.value : text(ctx, node)
}