fix spec

fix spec

diff --git a/assets/javascripts/lib/discourse-markdown/policy.js.es6 b/assets/javascripts/lib/discourse-markdown/policy.js.es6
index 018c6db..272ffc1 100644
--- a/assets/javascripts/lib/discourse-markdown/policy.js.es6
+++ b/assets/javascripts/lib/discourse-markdown/policy.js.es6
@@ -13,9 +13,7 @@ const rule = {
       ["data-group", info.attrs.group]
     ];
 
-    if (info.attrs["version"]) {
-      token.attrs.push(["data-version", info.attrs.version]);
-    }
+    token.attrs.push(["data-version", info.attrs.version || 1]);
 
     if (info.attrs["renew"]) {
       token.attrs.push(["data-renew", info.attrs.renew]);

GitHub sha: a558c665

1 Like