mirror of https://github.com/logseq/logseq
chore: disable auto headings on markdown mode
parent
6ed58e1654
commit
efadb995bb
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue