Ivan Voischev

Results 53 comments of Ivan Voischev

remove \n \t and ect ``` js tree.match(/^\n\s*$/, () => ''); ``` https://github.com/posthtml/project-stub/blob/master/gulpfile.js#L14-L18

hi! 👋 mb? https://github.com/posthtml/posthtml/blob/master/test/options.js#L8

# Examples #### one compiler ``` js let compiler = function(tree) { return str }; posthtml([plugins]) .process(html, { compiler: compiler }) .then(function (result) { result.parse(); // { tag: 'section' }...

maybe? ``` js posthtml([plugins]).process(string, { render: render, parser: parser }).then(function (tree) { tree; // { tag: 'section' } tree.render(); // tree.walk() // bonus tree.match() // bonus }); // tree.render() is...

@devinus `walk.call(tree, cb);` ;)

👋 LGTM not bad to see: - tests - default plugin example - pref benchmark support: Multiple matchers and Directives