Ivan Voischev
Ivan Voischev
:fire:
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);` ;)
no news
👋 LGTM not bad to see: - tests - default plugin example - pref benchmark support: Multiple matchers and Directives
support in Parcel