From af7ce5d6eb0ebe872fde910fc0004ff8232b4339 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Wed, 15 Jul 2020 11:23:28 +1000 Subject: [PATCH] Revert "DEV: Add debug hint in discourse-markdown-it" This reverts commit 5a4855b99289664e716efcac388769a11fd2a159. --- .../pretty-text/addon/engines/discourse-markdown-it.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js b/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js index 554feb3dbf0..358595d2485 100644 --- a/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js +++ b/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js @@ -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);