From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: ox-gfm and toc Date: Fri, 21 Aug 2015 12:54:34 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSkuD-0005C0-Tn for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 07:54:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSkuA-0007Yp-P9 for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 07:54:45 -0400 Received: from plane.gmane.org ([80.91.229.3]:35394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSkuA-0007YO-Ir for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 07:54:42 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZSku8-0007MR-Vu for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 13:54:41 +0200 Received: from 193.63.223.134 ([193.63.223.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Aug 2015 13:54:40 +0200 Received: from andreas.leha by 193.63.223.134 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Aug 2015 13:54:40 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all, I am confused about how tables of content are handled in ox-gfm. If I let org-mode do the default toc (#+OPTIONS: toc:t) then the TOC seems to work -- even without using the generated anchors for the headlines. Test file: --8<---------------cut here---------------start------------->8--- * Test File With text. --8<---------------cut here---------------end--------------->8--- exports to --8<---------------cut here---------------start------------->8--- - [Test File](#test-file) # Test File With text. --8<---------------cut here---------------end--------------->8--- This does not even use "orgheadline1". If I disable the default TOC and include a TOC later via `#+TOC: headlines 2` this toc is constructed in html and uses links to anchors. But these anchors are not present in the md file anymore, so the TOC is broken. Test file: --8<---------------cut here---------------start------------->8--- #+OPTIONS: toc:nil #+TOC: headlines 2 * Test File With text. --8<---------------cut here---------------end--------------->8--- exports to --8<---------------cut here---------------start------------->8---

Table of Contents

# Test File With text. --8<---------------cut here---------------end--------------->8--- which refers to non-existent "orgheadline1". Is this a bug in ox-gfm? Best, Andreas