Markdown Toolset
What?
Tiny module for markdown editing
Why?
There are plenty of markdown editors out there but no simple small tool that provides just basic markdown editing capabilities without binding you to specific editor implementation.
Where?
npm install markdown-toolset --save
or
bower install markdown-toolset --save
or just git clone and include dist/markdown-toolset.js on your page.
In browser it will try to find angular
and register itself as markdown-toolset
module. You then can include it in your module dependencies and inject markdownToolset
service.
Without angular it will just pollute global scope with markdownToolset
object.
How?
var mt = mt //*text*mt //**text**mt //# textmt //## textmt //### textmt //#### textmt //##### textmt //###### textmt //#### text - returns next header or cycles back to textmtlink'http://example.com' 'text' //[text](http://example.com)mt // mt //* line1 //* line2 //* line3 mt //1. line1 //2. line2 //3. line3 mtcode'line1\nline2\nline3' // line1 // line2 // line3 mt //*** //
More?
Need to include support for .link() and .image(). Might be a good idea to make it configurable.
License?
MIT