Ver código fonte

fix: <Center command

Weihua Lu 4 anos atrás
pai
commit
f672f269fa

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

@@ -188,7 +188,7 @@
      ["Export" (->block "export")]
      ["Verse" (->block "verse")]
      ["Ascii" (->block "export" "ascii")]
-     ["Center" (->block "export")]
+     ["Center" (->block "center")]
      ["Comment" (->block "comment")]]
 
     ;; 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]
         (admonition config "pinned" options result)
 
+        ["Custom" "center" options l content]
+        (->elem
+         :div.text-center
+         (markup-elements-cp config l))
+
         ["Custom" name options l content]
         (->elem
          :div