Browse Source

fix(ui): redundant space after the fenced code block mode line generated by the slash command

charlie 2 years ago
parent
commit
a9626876a0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/commands.cljs

+ 2 - 1
src/main/frontend/commands.cljs

@@ -370,7 +370,8 @@
                                     (and last-pattern
                                          (or (string/ends-with? last-pattern gp-property/colons)
                                              (string/starts-with? last-pattern gp-property/colons)))))))]
-                   (if (and space? (string/starts-with? last-pattern "#[["))
+                   (if (and space? (or (string/starts-with? last-pattern "#[[")
+                                       (string/starts-with? last-pattern "```")))
                      false
                      space?))
           prefix (cond