[#14] add initial github-flavored extension

simply handles strike-through for now.
This commit is contained in:
Corey Innis 2012-10-31 03:38:46 -07:00
parent 60c6eec3eb
commit d6d7f807ea
7 changed files with 40 additions and 4 deletions

View file

@ -0,0 +1,5 @@
//
// Github Extension (WIP)
// ~~strike-through~~ -> <del>strike-through</del>
//
(function(){var a=function(a){return[{type:"lang",regex:"(~T){2}([^~]+)(~T){2}",replace:function(a,b,c,d){return"<del>"+c+"</del>"}}]};typeof window!="undefined"&&window.Showdown&&window.Showdown.extensions&&(window.Showdown.extensions.github=a),typeof module!="undefined"&&(module.exports=a)})();