mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 08:04:40 +00:00
Move block-ref fns and vars to their own ns
Similar to page-ref to keep namespaces explicit
This commit is contained in:
committed by
Tienson Qin
parent
e0b1f6b2de
commit
4ec5827902
@@ -5,6 +5,7 @@
|
||||
[logseq.graph-parser.util :as gp-util]
|
||||
[logseq.graph-parser.mldoc :as gp-mldoc]
|
||||
[logseq.graph-parser.block :as gp-block]
|
||||
[logseq.graph-parser.util.block-ref :as block-ref]
|
||||
[clojure.string :as string]
|
||||
[frontend.util :as util]
|
||||
[frontend.handler.editor :as editor-handler]
|
||||
@@ -80,9 +81,9 @@
|
||||
(not (string/blank? (util/get-selected-text))))
|
||||
(editor-handler/html-link-format! text)
|
||||
|
||||
(and (gp-block/block-ref? text)
|
||||
(editor-handler/wrapped-by? input gp-block/left-parens gp-block/right-parens))
|
||||
(commands/simple-insert! (state/get-edit-input-id) (gp-block/get-block-ref-id text) nil)
|
||||
(and (block-ref/block-ref? text)
|
||||
(editor-handler/wrapped-by? input block-ref/left-parens block-ref/right-parens))
|
||||
(commands/simple-insert! (state/get-edit-input-id) (block-ref/get-block-ref-id text) nil)
|
||||
|
||||
:else
|
||||
;; from external
|
||||
|
||||
Reference in New Issue
Block a user