posthtml/sugarml

add options

michael-ciniawsky opened this issue · 0 comments

const sugarml = require('posthtml-sugarml')

/**
 * pretty   {Boolean} Add whitespace and '\n'
 * location {Boolean} Enable/Disable node.location 
 */
const options = { pretty: true, location: false }

posthtml([]).process('file.sml', { parser: sugarml(options) })