diff options
Diffstat (limited to 'lisp/org/ox-md.el')
-rw-r--r-- | lisp/org/ox-md.el | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lisp/org/ox-md.el b/lisp/org/ox-md.el index 5ba52e7faf3..12188387355 100644 --- a/lisp/org/ox-md.el +++ b/lisp/org/ox-md.el @@ -240,7 +240,7 @@ a communication channel." (format "<a id=\"%s\"></a>" (or (org-element-property :CUSTOM_ID headline) (org-export-get-reference headline info)))))) - (concat (org-md--headline-title style level title anchor tags) + (concat (org-md--headline-title style level heading anchor tags) contents))))))) @@ -582,16 +582,7 @@ contents according to the current headline." (format "[%s](#%s)" (org-export-data-with-backend (org-export-get-alt-title headline info) - ;; Create an anonymous back-end that will - ;; ignore any footnote-reference, link, - ;; radio-target and target in table of - ;; contents. - (org-export-create-backend - :parent 'md - :transcoders '((footnote-reference . ignore) - (link . (lambda (object c i) c)) - (radio-target . (lambda (object c i) c)) - (target . ignore))) + (org-export-toc-entry-backend 'md) info) (or (org-element-property :CUSTOM_ID headline) (org-export-get-reference headline info)))) |