giuseppeg / xm

₪ extensible HTML
https://giuseppeg.github.io/xm
326 stars 9 forks source link

Use as a gulp plugin #10

Open Electro-Mantis opened 3 years ago

Electro-Mantis commented 3 years ago

Would you have any guidance on how to use xm within gulp? My first instinct would be to use the gulp-posthtml plugin and somehow inject xm that gulp stream, but I'm not sure if that's even possible, seeing that xm is more of it's own cli tool built on top of posthtml?

giuseppeg commented 3 years ago

I guess you can use gulp-posthtml and register this plugin https://github.com/giuseppeg/xm/tree/master/lib/posthtml-xm-import and posthtml-md2html

Electro-Mantis commented 3 years ago

Ah that should work I suppose, I'll try this out.