larstvei / ox-gfm

Github Flavored Markdown Back-End for Org Export Engine
230 stars 44 forks source link

Variables to disable TOC #29

Closed waltervargas closed 6 years ago

waltervargas commented 6 years ago

Hi,

Thank you for developing this exporter, it's possible to have the a variable to enable/disable TOC?

Thank you.

larstvei commented 6 years ago

Yes. It's a org-mode feature that is supported by ox-gfm, and is documented in the org mode manual,

The following org file would produce a markdown file with a table of contents:

#+TITLE: TEST
#+OPTIONS: toc:t
* Headline 1

This one would not include a table of contents:

#+TITLE: TEST
#+OPTIONS: toc:nil
* Headline 1
waltervargas commented 6 years ago

Hey @larstvei thank you for your answer!