mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
d6d7f807ea
simply handles strike-through for now.
5 lines
385 B
JavaScript
5 lines
385 B
JavaScript
//
|
|
// 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)})(); |