Skip to content

maniqui/punch-svg-fragment-content-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Punch SVG Fragment Content Parser

A custom Punch content parser to passthrough SVG fragments for page content.

How to Use

  • Install the package:

    npm install punch-svg-fragment-content-parser

  • Open your Punch project's configurations (config.json) and add the following:

      "plugins": {
      	"parsers": {
          	".svg": "punch-svg-fragment-content-parser"
      	}
      }
    
  • Much like you would create extended content fragments in markdown, create them in SVG with the extension .svg. The contents of the .svg file will be included unparsed.

About

A Punch content parser to passthrough SVG fragments.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%