Skip to content

awinogradov/posthtml-to-svg-tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>    

About

Transform html tags to svg tags

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published