jnordberg / wintersmith

A flexible static site generator
http://wintersmith.io/
MIT License
3.5k stars 332 forks source link

Feature Request: Adding custom markdown tags #322

Closed jaskiratr closed 7 years ago

jaskiratr commented 7 years ago

I've been using Wintersmith for a while now. It's awesome!

Though I end up a lot of times adding html in my markdown files. Which doesn't make it readable e.g. I came across markdown-it-attrs for nodejs and there are similar markdown packages for Ruby and Python.

How would one go about using markdown-it-attrs with wintersmith?

Thanks.

jnordberg commented 7 years ago

Thanks!

You could write a plugin for it, easiest would be to subclass the existing markdown plugin. Have a look at how it's done here: https://github.com/jnordberg/wintersmith/blob/master/src/plugins/markdown.coffee

jaskiratr commented 7 years ago

Thanks. I'll take a stab at it. :)