2
0
Fork 0
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:
Sam 2017-07-17 16:21:47 -04:00
parent 29d529020b
commit 8921058c67
17 changed files with 147 additions and 150 deletions

View file

@ -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']);