mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
7d63a3e635
This commit adds events to all subparsers (that were previously not being watched).
9 lines
378 B
JavaScript
9 lines
378 B
JavaScript
showdown.subParser('hashBlock', function (text, options, globals) {
|
|
'use strict';
|
|
text = globals.converter._dispatch('hashBlock.before', text, options, globals);
|
|
text = text.replace(/(^\n+|\n+$)/g, '');
|
|
text = '\n\n¨K' + (globals.gHtmlBlocks.push(text) - 1) + 'K\n\n';
|
|
text = globals.converter._dispatch('hashBlock.after', text, options, globals);
|
|
return text;
|
|
});
|