showdown.subParser('strikethrough', function (text, options, globals) { 'use strict'; if (options.strikethrough) { text = globals.converter._dispatch('strikethrough.before', text, options); text = text.replace(/(?:~T){2}([^~]+)(?:~T){2}/g, '$1'); text = globals.converter._dispatch('strikethrough.after', text, options); } return text; });