@starptech/prettyhtml-formatter
Version:
Html formatter
17 lines (11 loc) • 317 B
JavaScript
const xtend = require('xtend')
const toHTML = require('@starptech/prettyhtml-hast-to-html')
module.exports = stringify
function stringify(config) {
const settings = xtend(config, this.data('settings'))
this.Compiler = compiler
function compiler(tree) {
return toHTML(tree, settings)
}
}