mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix showdown patch registration
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
showdown.subParser('makehtml.unhashHTMLSpans', function (text, options, globals) {
|
showdown.subParser('unhashHTMLSpans', function (text, options, globals) {
|
||||||
'use strict';
|
'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) {
|
for (var i = 0; i < globals.gHtmlSpans.length; ++i) {
|
||||||
var repText = globals.gHtmlSpans[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 = 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;
|
return text;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user