emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 0c5a044019 5/7: Fix file extension of Org markdo


From: ELPA Syncer
Subject: [elpa] externals/denote 0c5a044019 5/7: Fix file extension of Org markdown export
Date: Wed, 14 Feb 2024 03:57:57 -0500 (EST)

branch: externals/denote
commit 0c5a044019f2446ce2e04e7661dbdb034edd68f2
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Fix file extension of Org markdown export
    
    We should not be adding the .md suffix because the export mechanism
    does not also convert the target file into Markdown format. Instead,
    we must preserve the original path.
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index e148bc554b..cd807634e6 100644
--- a/denote.el
+++ b/denote.el
@@ -4157,7 +4157,7 @@ backend."
      ((eq format 'latex) (format "\\href{%s}{%s}" (replace-regexp-in-string 
"[\\{}$%&_#~^]" "\\\\\\&" path) desc))
      ((eq format 'texinfo) (format "@uref{%s,%s}" path desc))
      ((eq format 'ascii) (format "[%s] <denote:%s>" desc path)) ; NOTE 
2022-06-16: May be tweaked further
-     ((eq format 'md) (format "[%s](%s.md)" desc anchor))
+     ((eq format 'md) (format "[%s](%s)" desc path))
      (t path))))
 
 ;; The `eval-after-load' part with the quoted lambda is adapted from



reply via email to

[Prev in Thread] Current Thread [Next in Thread]