Fix showdown patch registration

This commit is contained in:
Cohee
2024-08-27 10:50:24 +00:00
parent 3da79ebcff
commit da96bf3c29

View File

@@ -1,6 +1,6 @@
showdown.subParser('makehtml.unhashHTMLSpans', function (text, options, globals) {
showdown.subParser('unhashHTMLSpans', function (text, options, globals) {
'use strict';
text = globals.converter._dispatch('makehtml.unhashHTMLSpans.before', text, options, globals).getText();
text = globals.converter._dispatch('unhashHTMLSpans.before', text, options, globals);
for (var i = 0; i < globals.gHtmlSpans.length; ++i) {
var repText = globals.gHtmlSpans[i],
@@ -19,6 +19,6 @@ showdown.subParser('makehtml.unhashHTMLSpans', function (text, options, globals)
text = text.replace('¨C' + i + 'C', repText);
}
text = globals.converter._dispatch('makehtml.unhashHTMLSpans.after', text, options, globals).getText();
text = globals.converter._dispatch('unhashHTMLSpans.after', text, options, globals);
return text;
});