mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
10 lines
251 B
JavaScript
10 lines
251 B
JavaScript
|
/**
|
||
|
* Created by Estevao on 11-01-2015.
|
||
|
*/
|
||
|
|
||
|
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';
|
||
|
});
|