mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Markdown: Add ability to exclude specific strings
A comma-separated list of markdown strings provided by the user can be excluded as needed. This is combined with the set chat separator to provide a seamless experience when chatting. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@ -150,7 +150,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";
|
||||
import { markdownExclusionExt } from "./scripts/showdown-exclusion.js";
|
||||
import { setFloatingPrompt } from "./scripts/extensions/floating-prompt/index.js";
|
||||
|
||||
//exporting functions and vars for mods
|
||||
@ -545,7 +545,7 @@ function reloadMarkdownProcessor(render_formulas = false) {
|
||||
// Maybe move this into power_user init?
|
||||
setTimeout(() => {
|
||||
if (power_user) {
|
||||
converter.addExtension(dinkusExtension(), 'dinkus');
|
||||
converter.addExtension(markdownExclusionExt(), 'exclusion');
|
||||
}
|
||||
}, 1)
|
||||
|
||||
|
Reference in New Issue
Block a user