|
|
@@ -637,9 +637,12 @@
|
|
|
_ (when-not page-entity (js/console.warn "page-inner's page-entity is nil, given page-name: " page-name))
|
|
|
s (if (re-find db-content/special-id-ref-pattern s)
|
|
|
(db-content/special-id-ref->page s (:block/refs page-entity))
|
|
|
- s)]
|
|
|
- (if tag? (str "#" s) s))))]
|
|
|
-
|
|
|
+ s)
|
|
|
+ s (if tag? (str "#" s) s)
|
|
|
+ inline-list (gp-mldoc/inline->edn s (mldoc/get-default-config (get page-entity :block/format :markdown)))]
|
|
|
+ (if (ldb/page? page-entity)
|
|
|
+ s
|
|
|
+ (->elem :span (map-inline config inline-list))))))]
|
|
|
(let [repo (state/get-current-repo)
|
|
|
block-id (:block/uuid config)
|
|
|
block (when block-id (db/entity [:block/uuid block-id]))]
|