mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
Move all block ref parens strings to vars
Extracted a couple fns we kept reinventing across namespaces
This commit is contained in:
committed by
Tienson Qin
parent
e1e8ff8a92
commit
a3d30e0b52
@@ -82,7 +82,7 @@
|
||||
(editor-handler/html-link-format! text)
|
||||
|
||||
(and (text/block-ref? text)
|
||||
(editor-handler/wrapped-by? input "((" "))"))
|
||||
(editor-handler/wrapped-by? input gp-block/left-parens gp-block/right-parens))
|
||||
(commands/simple-insert! (state/get-edit-input-id) (text/get-block-ref text) nil)
|
||||
|
||||
:else
|
||||
|
||||
Reference in New Issue
Block a user