mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 09:56:31 +00:00
enhance: type ``` and press Enter to switch to codemirror
This commit is contained in:
@@ -2431,7 +2431,12 @@
|
||||
(+ (string/index-of content right-bound pos)
|
||||
(count right-bound))))
|
||||
"admonition-block" (keydown-new-line)
|
||||
"source-block" (keydown-new-line)
|
||||
"source-block" (do
|
||||
(keydown-new-line)
|
||||
(case (:action thing-at-point)
|
||||
:into-code-editor
|
||||
(state/into-code-editor-mode!)
|
||||
nil))
|
||||
"block-ref" (open-block-in-sidebar! (:link thing-at-point))
|
||||
"page-ref" (when-not (string/blank? (:link thing-at-point))
|
||||
(insert-first-page-block-if-not-exists! (:link thing-at-point))
|
||||
|
||||
Reference in New Issue
Block a user