0.0.0 • Published 7 years ago
posthtml-to-svg-tags v0.0.0
posthtml-to-svg-tags
PostHTMLToSvgTags is plugin for PostHTML. It convert all HTML tags to SVG equals and maybe with new structure.
Usage
var posthtml = require('posthtml'),
html = '<div class="wow">OMG</div>';
posthtml([ require('posthtml-to-svg-tags')()])
.process(html)
.then(function(result) {
console.log(result);
});
// <g id="wow">OMG</g>
0.0.0
7 years ago