From 69dae554fbb06a4d9b45c8349a81dcc2589b020b Mon Sep 17 00:00:00 2001 From: Masanao Igarashi Date: Thu, 20 Feb 2025 10:38:25 +0900 Subject: [PATCH] Do not strip link type by default during export --- ox-rst.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ox-rst.el b/ox-rst.el index 3027bfd..3224ee5 100644 --- a/ox-rst.el +++ b/ox-rst.el @@ -960,9 +960,6 @@ INFO is a plist holding contextual information." ;; Ensure DESC really exists, or set it to nil. (desc (and (not (string= desc "")) desc)) (path (cond - ((member type '("http" "https" "ftp" "mailto")) - (url-encode-url - (concat type ":" raw-path))) ((string= type "file") ;; Treat links to ".org" files as ".rst", if needed. (setq raw-path @@ -971,7 +968,7 @@ INFO is a plist holding contextual information." (setq raw-path (concat (file-name-as-directory home) raw-path))) (t raw-path))) - (t raw-path))) + (t (concat type ":" raw-path)))) (attributes-plist (org-combine-plists ;; Extract attributes from parent's paragraph. HACK: Only