mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: medium URL with @ incorrectly handled as mention
Also: - remove unused code - rename bbcode_ruler to bbcode.ruler - add md.core.textPostProcess.ruler to apply at end of chain (excluding links)
This commit is contained in:
parent
29d529020b
commit
8921058c67
17 changed files with 147 additions and 150 deletions
|
@ -27,8 +27,6 @@ function render(tokens, idx, options, env, slf, md) {
|
|||
}
|
||||
|
||||
export function setup(helper) {
|
||||
if (!helper.markdownIt) { return; }
|
||||
|
||||
helper.registerOptions((opts, siteSettings) => {
|
||||
opts.defaultCodeLang = siteSettings.default_code_lang;
|
||||
opts.acceptableCodeClasses = (siteSettings.highlighted_languages || "").split("|").concat(['auto', 'nohighlight']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue