|
@@ -35,6 +35,7 @@
|
|
|
[promesa.core :as p]
|
|
[promesa.core :as p]
|
|
|
[frontend.mobile.util :as mobile-util]
|
|
[frontend.mobile.util :as mobile-util]
|
|
|
[logseq.graph-parser.util :as gp-util]
|
|
[logseq.graph-parser.util :as gp-util]
|
|
|
|
|
+ [logseq.graph-parser.text :as text]
|
|
|
[logseq.graph-parser.config :as gp-config]
|
|
[logseq.graph-parser.config :as gp-config]
|
|
|
[logseq.graph-parser.block :as gp-block]
|
|
[logseq.graph-parser.block :as gp-block]
|
|
|
[logseq.graph-parser.property :as gp-property]
|
|
[logseq.graph-parser.property :as gp-property]
|
|
@@ -139,7 +140,10 @@
|
|
|
properties nil
|
|
properties nil
|
|
|
split-namespace? true
|
|
split-namespace? true
|
|
|
uuid nil}}]
|
|
uuid nil}}]
|
|
|
- (let [title (string/trim title)
|
|
|
|
|
|
|
+ (let [title (-> (string/trim title)
|
|
|
|
|
+ (text/page-ref-un-brackets!)
|
|
|
|
|
+ ;; remove `#` from tags
|
|
|
|
|
+ (string/replace #"^#+" ""))
|
|
|
title (gp-util/remove-boundary-slashes title)
|
|
title (gp-util/remove-boundary-slashes title)
|
|
|
page-name (util/page-name-sanity-lc title)
|
|
page-name (util/page-name-sanity-lc title)
|
|
|
repo (state/get-current-repo)
|
|
repo (state/get-current-repo)
|