Revert "DEV: Add debug hint in discourse-markdown-it"

This reverts commit 5a4855b992.
This commit is contained in:
Martin Brennan 2020-07-15 11:23:28 +10:00
parent 5a4855b992
commit af7ce5d6eb
No known key found for this signature in database
GPG Key ID: A08063EEF3EA26A4

View File

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