FIX: Use tight list format for GDocs html to markdown

FIX: Use tight list format for GDocs html to markdown

diff --git a/assets/javascripts/initializers/spoiler-alert.js.es6 b/assets/javascripts/initializers/spoiler-alert.js.es6
index 42a8e4c..05618c4 100644
--- a/assets/javascripts/initializers/spoiler-alert.js.es6
+++ b/assets/javascripts/initializers/spoiler-alert.js.es6
@@ -61,6 +61,13 @@ function initializeSpoiler(api) {
 
         decorate(text) {
           const attr = this.element.attributes;
+          const parent = this.element.parent;
+
+          if (this.name === "p" && parent && parent.name === "li") {
+            // fix for google docs
+            this.gap = "";
+          }
+
           if (this.name === "div" && attr.class === "spoiled") {
             this.prefix = "[spoiler]";
             this.suffix = "[/spoiler]";

GitHub
sha: dd52692b