mirror of
https://github.com/larstvei/ox-gfm.git
synced 2024-11-26 09:38:31 +00:00
CUSTOM_ID must be upcased for custom anchors to work
This commit is contained in:
parent
cd01aa0970
commit
47c466b660
@ -236,7 +236,7 @@ plist used as a communication channel."
|
|||||||
(org-export-get-alt-title headline info) info))
|
(org-export-get-alt-title headline info) info))
|
||||||
(level (1- (org-element-property :level headline)))
|
(level (1- (org-element-property :level headline)))
|
||||||
(indent (concat (make-string (* level 2) ? )))
|
(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))))
|
(org-export-get-reference headline info))))
|
||||||
(concat indent "- [" title "]" "(#" anchor ")")))
|
(concat indent "- [" title "]" "(#" anchor ")")))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user