fix: org mode label

pull/3963/head
Tienson Qin 2022-03-08 14:27:21 +08:00
parent b17b0ee0e1
commit 004e567fb5
1 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@
[format label link]
(case format
:org
[(util/format "[[%s][label]]" link label)
[(util/format "[[%s][%s]]" link label)
(+ 4 (count link) (count label))]
:markdown
[(util/format "[%s](%s)" label link)
@ -312,7 +312,7 @@
(if (string/starts-with? dir "file:")
dir
(str "file:///" (string/replace dir #"^/+" ""))))
:else
(str "/"
(->> (take-last 2 (string/split repo-url #"/"))