浏览代码

fix: minimum auto heading level

Konstantinos Kaloutas 3 年之前
父节点
当前提交
f081486879
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/frontend/components/block.cljs

+ 1 - 1
src/main/frontend/components/block.cljs

@@ -1907,7 +1907,7 @@
                       (<= heading-level 6)
                       (<= heading-level 6)
                       heading-level)
                       heading-level)
                  (:heading properties))
                  (:heading properties))
-        heading (if (true? heading) (min level 6) heading)
+        heading (if (true? heading) (min (inc level) 6) heading)
         elem (if heading
         elem (if heading
                (keyword (str "h" heading
                (keyword (str "h" heading
                              (when block-ref? ".inline")))
                              (when block-ref? ".inline")))