ox-md: Implement native table of contents
commit2370a885e70b5fc658375c0951d36e7fc3342b56
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 11 Mar 2017 14:21:27 +0000 (11 15:21 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 11 Mar 2017 14:21:27 +0000 (11 15:21 +0100)
tree2664af448bd33407bdbc31f7654d4f4ea83804ed
parent2d1f73ebf8baeff5495651078d5d10dfc6bc1315
ox-md: Implement native table of contents

* lisp/ox-md.el (org-md--headline-referred-p): Try hard to limit
  anchors for headlines really referred to, either globally, or
  locally, in a table of contents.
(org-md-keyword): Add support for "TOC" keyword.
(org-md--build-toc): New function.
(org-md-inner-template): Use new function.
etc/ORG-NEWS
lisp/ox-md.el