Merge pull request #475 from bdashore3/dev

Markdown escaping and reloading
This commit is contained in:
Cohee
2023-06-10 22:56:18 +03:00
committed by GitHub
4 changed files with 40 additions and 0 deletions

View File

@ -148,6 +148,7 @@ import {
} from "./scripts/secrets.js";
import { EventEmitter } from './scripts/eventemitter.js';
import { context_settings, loadContextTemplatesFromSettings } from "./scripts/context-template.js";
import { dinkusExtension } from "./scripts/showdown-dinkus.js";
//exporting functions and vars for mods
export {
@ -533,6 +534,14 @@ function reloadMarkdownProcessor(render_formulas = false) {
});
}
// Inject the dinkus extension after creating the converter
// Maybe move this into power_user init?
setTimeout(() => {
if (power_user) {
converter.addExtension(dinkusExtension(), 'dinkus');
}
}, 1)
return converter;
}