fix: correctly link to an md file

This commit is contained in:
Lucien Cartier-Tilet 2024-09-12 21:09:54 +02:00
parent 7695bd78b4
commit 2e8f06da0e
Signed by: phundrak
GPG Key ID: 347803E8073EACE0

View File

@ -83,7 +83,7 @@
(slug (cdr slug-head))
(filename (conlanging--get-filename-no-ext))
(text (completing-read "Text: " `(,heading) nil nil heading)))
(insert (format "[[file:./%s#%s][%s]]" filename slug text))))
(insert (format "[[file:./%s.md#%s][%s]]" filename slug text))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Text transformation ;