mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 13:53:44 +08:00
Revert "DEV: Add debug hint in discourse-markdown-it"
This reverts commit 5a4855b992
.
This commit is contained in:
parent
5a4855b992
commit
af7ce5d6eb
|
@ -1,5 +1,4 @@
|
|||
import WhiteLister from "pretty-text/white-lister";
|
||||
import { isDevelopment } from "discourse-common/config/environment";
|
||||
import { sanitize } from "pretty-text/sanitizer";
|
||||
import guid from "pretty-text/guid";
|
||||
|
||||
|
@ -373,15 +372,6 @@ export function setup(opts, siteSettings, state) {
|
|||
setupInlineBBCode(opts.engine);
|
||||
setupTextPostProcessRuler(opts.engine);
|
||||
|
||||
if (isDevelopment()) {
|
||||
if (window.console) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.debug(
|
||||
"DEBUG: To debug all markdown plugins, add console.log within pluginCallbacks.forEach."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pluginCallbacks.forEach(([feature, callback]) => {
|
||||
if (opts.discourse.features[feature]) {
|
||||
opts.engine.use(callback);
|
||||
|
|
Loading…
Reference in New Issue
Block a user