This commit is contained in:
16
node_modules/rehype-stringify/index.js
generated
vendored
Normal file
16
node_modules/rehype-stringify/index.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict'
|
||||
|
||||
var xtend = require('xtend')
|
||||
var toHTML = require('hast-util-to-html')
|
||||
|
||||
module.exports = stringify
|
||||
|
||||
function stringify(config) {
|
||||
var settings = xtend(config, this.data('settings'))
|
||||
|
||||
this.Compiler = compiler
|
||||
|
||||
function compiler(tree) {
|
||||
return toHTML(tree, settings)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user