showdown/src/subParsers/hashBlock.js

6 lines
199 B
JavaScript
Raw Normal View History

2015-01-16 05:21:33 +08:00
showdown.subParser('hashBlock', function (text, options, globals) {
2015-01-19 19:37:21 +08:00
'use strict';
text = text.replace(/(^\n+|\n+$)/g, '');
return '\n\n~K' + (globals.gHtmlBlocks.push(text) - 1) + 'K\n\n';
2015-01-16 05:21:33 +08:00
});