ox-md: Fix TOC's internal links
commitd70a0b62517e71cb62b80ae6227565ffb019f4c1
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 20 Sep 2015 19:50:50 +0000 (20 21:50 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 20 Sep 2015 20:58:56 +0000 (20 22:58 +0200)
tree9fd772fc062f3e46cae2235761017541da0ee7ee
parent54a65250a81a2e230e2760857aa2303836e62ba5
ox-md: Fix TOC's internal links

* lisp/ox-md.el (org-md-headline): Use CUSTOM-ID when available.

TOC is generated using HTML export back-end, which links to headlines
through their custom ID, when available.  By anchoring that custom ID,
we make sure these links are not broken.

Reported-by: dbitouze@wanadoo.fr (Denis Bitouzé)
<http://permalink.gmane.org/gmane.emacs.orgmode/101344>
lisp/ox-md.el