[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
- [elpa] externals/denote updated (38ada4ecba -> 561911e747), ELPA Syncer, 2024/02/14
- [elpa] externals/denote b0eee438c1 4/7: Make Org export correctly add the search to the anchor, ELPA Syncer, 2024/02/14
- [elpa] externals/denote afe1f37d4f 1/7: Remove denote-user-enforced-denote-directory, ELPA Syncer, 2024/02/14
- [elpa] externals/denote a48a1da067 2/7: Make denote-user-enforced-denote-directory an alias of denote-directory, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 37d24168ba 3/7: Update the manual's acknowledgements., ELPA Syncer, 2024/02/14
- [elpa] externals/denote 0c5a044019 5/7: Fix file extension of Org markdown export,
ELPA Syncer <=
- [elpa] externals/denote f1036f9af3 6/7: Remove needless comment about possible tweak to Org ascii export, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 561911e747 7/7: Use the new 'denote-parse-date' throughout denote-journal-extras, ELPA Syncer, 2024/02/14