Move common uses of page-ref to its own ns

By having a specific ns for page-ref utils, our code is more readable
and intention revealing. Also found that
text/{get-page-name,page-ref-un-brackets!} was getting called in
contexts that didn't make sense e.g. query layer was checking for
markdown and org page-refs
This commit is contained in:
Gabriel Horner
2022-08-01 14:49:27 -04:00
committed by Tienson Qin
parent 8be0deecd0
commit e0b1f6b2de
25 changed files with 201 additions and 145 deletions

View File

@@ -12,3 +12,9 @@ logseq.graph-parser.block/->block-ref
logseq.graph-parser.block/block-ref?
;; API
logseq.graph-parser.block/get-all-block-ref-ids
;; API
logseq.graph-parser.util.page-ref/left-and-right-brackets
;; API
logseq.graph-parser.util.page-ref/->page-ref
;; API
logseq.graph-parser.util.page-ref/get-page-name!