Explorar o código

fix: <Center command

Weihua Lu %!s(int64=4) %!d(string=hai) anos
pai
achega
f672f269fa

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

@@ -188,7 +188,7 @@
      ["Export" (->block "export")]
      ["Export" (->block "export")]
      ["Verse" (->block "verse")]
      ["Verse" (->block "verse")]
      ["Ascii" (->block "export" "ascii")]
      ["Ascii" (->block "export" "ascii")]
-     ["Center" (->block "export")]
+     ["Center" (->block "center")]
      ["Comment" (->block "comment")]]
      ["Comment" (->block "comment")]]
 
 
     ;; Allow user to modify or extend, should specify how to extend.
     ;; Allow user to modify or extend, should specify how to extend.

+ 5 - 0
src/main/frontend/components/block.cljs

@@ -2541,6 +2541,11 @@
         ["Custom" "pinned" options result content]
         ["Custom" "pinned" options result content]
         (admonition config "pinned" options result)
         (admonition config "pinned" options result)
 
 
+        ["Custom" "center" options l content]
+        (->elem
+         :div.text-center
+         (markup-elements-cp config l))
+
         ["Custom" name options l content]
         ["Custom" name options l content]
         (->elem
         (->elem
          :div
          :div