mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
6 lines
199 B
JavaScript
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';
|
|
});
|