developit / snarkdown

:smirk_cat: A snarky 1kb Markdown parser written in JavaScript
http://jsfiddle.net/developit/828w6t1x/
MIT License
2.29k stars 109 forks source link

Plugins #19

Open yatharthx opened 7 years ago

yatharthx commented 7 years ago

I was wondering if we can make snarkdown pluggable. So the core module remains minimal and developers can use plugins to enhance the conversion as and how they need. What do you say @developit ?

tunnckoCore commented 7 years ago

It was commeted here a bit https://github.com/developit/snarkdown/issues/5

developit commented 7 years ago

Yup. The difficulty here is that the lexer is a regex. It's very hard to dynamically build up a regex and still have meaningful submatches.