Add id to decorateCooked API call

Add id to decorateCooked API call

diff --git a/assets/javascripts/discourse/initializers/checklist.js.es6 b/assets/javascripts/discourse/initializers/checklist.js.es6
index 2df3928..2c4db8f 100644
--- a/assets/javascripts/discourse/initializers/checklist.js.es6
+++ b/assets/javascripts/discourse/initializers/checklist.js.es6
@@ -7,7 +7,7 @@ function initializePlugin(api) {
   const siteSettings = api.container.lookup("site-settings:main");
 
   if (siteSettings.checklist_enabled) {
-    api.decorateCooked(checklistSyntax);
+    api.decorateCooked(checklistSyntax, { id: "checklist" });
   }
 }

GitHub sha: 1d46d4cf

1 Like