fix: minimum auto heading level

This commit is contained in:
Konstantinos Kaloutas
2022-10-14 17:27:42 +03:00
committed by Tienson Qin
parent 3c8a9afc85
commit ed1dcb9e7e

View File

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