From 249d2be0e0e7b47df7d0895dee21b3ecfb751902 Mon Sep 17 00:00:00 2001 From: cnngimenez Date: Mon, 10 Jan 2022 11:58:50 -0300 Subject: [PATCH] Encode URL in exported links. --- ox-gemini.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ox-gemini.el b/ox-gemini.el index 2840082..cb8322f 100644 --- a/ox-gemini.el +++ b/ox-gemini.el @@ -20,6 +20,7 @@ (require 'ox-publish) (require 'ox-ascii) (require 'cl-lib) +(require 'url-util) ;; TODO: ;; Sublists aren't supported in gemini @@ -94,7 +95,7 @@ It's output just before each section. LINKS is a list of each link. INFO is a (anchor (org-export-data (or desc (org-element-property :raw-link link)) info))) - (format "=> %s %s\n" path anchor))) + (format "=> %s %s\n" (url-encode-url path) anchor))) links "") (when (car links) "\n")))