Move all block ref parens strings to vars

Extracted a couple fns we kept reinventing across namespaces
This commit is contained in:
Gabriel Horner
2022-07-25 17:14:27 -04:00
committed by Tienson Qin
parent e1e8ff8a92
commit a3d30e0b52
14 changed files with 73 additions and 54 deletions

View File

@@ -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