showdown/src/subParsers/hashBlock.js
2015-01-19 14:57:43 +00:00

6 lines
199 B
JavaScript

showdown.subParser('hashBlock', function (text, options, globals) {
'use strict';
text = text.replace(/(^\n+|\n+$)/g, '');
return '\n\n~K' + (globals.gHtmlBlocks.push(text) - 1) + 'K\n\n';
});