Weihua Lu 4 лет назад
Родитель
Сommit
f672f269fa
2 измененных файлов с 6 добавлено и 1 удалено
  1. 1 1
      src/main/frontend/commands.cljs
  2. 5 0
      src/main/frontend/components/block.cljs

+ 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