Fix asset link creating invalid page for org mode

pull/9399/head
Gabriel Horner 2023-05-12 17:13:23 -04:00 committed by Tienson Qin
parent 7335a6f623
commit fe24b61beb
2 changed files with 3 additions and 1 deletions

View File

@ -56,6 +56,7 @@
(and (= url-type "Search")
(= format :org)
(not (gp-config/local-asset? value))
value)
(and

View File

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