chore: disable auto headings on markdown mode

pull/6911/head
Konstantinos Kaloutas 2022-10-17 12:45:06 +03:00 committed by Tienson Qin
parent 6ed58e1654
commit efadb995bb
2 changed files with 5 additions and 1 deletions

View File

@ -188,7 +188,10 @@
:icon "h-auto" :icon "h-auto"
:icon-props {:extension? true} :icon-props {:extension? true}
:class "to-heading-button" :class "to-heading-button"
:title (t :auto-heading) :title (if (= format :markdown)
(str (t :auto-heading) " - " (t :not-available-in-mode format))
(t :auto-heading))
:disabled (= format :markdown)
:on-click (fn [_e] :on-click (fn [_e]
(editor-handler/set-heading! block-id format true)) (editor-handler/set-heading! block-id format true))
:intent "link" :intent "link"

View File

@ -340,6 +340,7 @@
:remove-heading "Remove heading" :remove-heading "Remove heading"
:heading "Heading {1}" :heading "Heading {1}"
:auto-heading "Auto heading" :auto-heading "Auto heading"
:not-available-in-mode "Not available in {1} mode"
:open "Open" :open "Open"
:open-a-directory "Open a local directory" :open-a-directory "Open a local directory"
:user/delete-account "Delete account" :user/delete-account "Delete account"