Skip to content

Commit be52a62

Browse files
committed
Add :type-explicit-p property for file links in Org (Emacs >= 30)
Keeping the file: prefix of the link. * jupyter-org-client.el (jupyter-org-file-link): Do it.
1 parent 4f9bc01 commit be52a62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jupyter-org-client.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,10 @@ VALUE."
896896

897897
(defun jupyter-org-file-link (path)
898898
"Return a file link `org-element' that points to PATH."
899-
(org-element-create 'link (list :type "file" :path path)))
899+
(org-element-create 'link
900+
(list :type "file"
901+
:path path
902+
:type-explicit-p t)))
900903

901904
(defun jupyter-org-image-link (path &optional width height)
902905
"Return an `org-element' for an image at PATH.

0 commit comments

Comments
 (0)