From 47c466b660ec184af70589df1c3a26d90241cd1c Mon Sep 17 00:00:00 2001 From: Julien Chastang Date: Sat, 4 Mar 2017 16:04:50 -0700 Subject: [PATCH] CUSTOM_ID must be upcased for custom anchors to work --- ox-gfm.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox-gfm.el b/ox-gfm.el index 542eb7a..7a4408a 100644 --- a/ox-gfm.el +++ b/ox-gfm.el @@ -236,7 +236,7 @@ plist used as a communication channel." (org-export-get-alt-title headline info) info)) (level (1- (org-element-property :level headline))) (indent (concat (make-string (* level 2) ? ))) - (anchor (or (org-element-property :custom_id headline) + (anchor (or (org-element-property :CUSTOM_ID headline) (org-export-get-reference headline info)))) (concat indent "- [" title "]" "(#" anchor ")")))