DEV: Add debug hint in discourse-markdown-it

DEV: Add debug hint in discourse-markdown-it

This console.debug message ONLY shows if isDevelopment() is true for the environment

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 358595d..554feb3 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,4 +1,5 @@
 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";
 
@@ -372,6 +373,15 @@ 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);

GitHub sha: 5a4855b9