mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 11:02:18 +08:00
Revert "Integrate new engine, correct old specs"
This reverts commit f1b38ba4fb778c08a45dd001300fc651c92718ba.
This commit is contained in:
@ -227,11 +227,10 @@ export function setup(opts, siteSettings, state) {
|
||||
opts.markdownIt = true;
|
||||
opts.setup = true;
|
||||
|
||||
if (!opts.discourse.sanitizer || !opts.sanitizer) {
|
||||
if (!opts.discourse.sanitizer) {
|
||||
const whiteLister = new WhiteLister(opts.discourse);
|
||||
opts.sanitizer = opts.discourse.sanitizer = (!!opts.discourse.sanitize) ? a=>sanitize(a, whiteLister) : a=>a;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export function cook(raw, opts) {
|
||||
|
Reference in New Issue
Block a user