mirror of https://github.com/logseq/logseq
Fix asset link creating invalid page for org mode
parent
7335a6f623
commit
fe24b61beb
|
@ -56,6 +56,7 @@
|
|||
|
||||
(and (= url-type "Search")
|
||||
(= format :org)
|
||||
(not (gp-config/local-asset? value))
|
||||
value)
|
||||
|
||||
(and
|
||||
|
|
|
@ -390,7 +390,8 @@
|
|||
"foo.org"
|
||||
(str "* [[bar][title]]\n"
|
||||
;; all of the uris below do not create pages
|
||||
"* [[https://example.com][example]]"))
|
||||
"* [[https://example.com][example]]\n"
|
||||
"* [[../assets/conga_parrot.gif][conga]]"))
|
||||
(is (= #{"foo" "bar"}
|
||||
(->> (d/q '[:find (pull ?b [*])
|
||||
:in $
|
||||
|
|
Loading…
Reference in New Issue