From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mitchel Humpherys Subject: ox-html: Table of Contents not respecting CUSTOM_ID Date: Mon, 29 Jun 2015 14:08:03 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9gHl-0005qU-Df for emacs-orgmode@gnu.org; Mon, 29 Jun 2015 17:08:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9gHg-00031R-1u for emacs-orgmode@gnu.org; Mon, 29 Jun 2015 17:08:13 -0400 Received: from mail-pd0-x230.google.com ([2607:f8b0:400e:c02::230]:34983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9gHf-000309-QE for emacs-orgmode@gnu.org; Mon, 29 Jun 2015 17:08:07 -0400 Received: by pdbci14 with SMTP id ci14so122814725pdb.2 for ; Mon, 29 Jun 2015 14:08:05 -0700 (PDT) Received: from mitchelh-linux1.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by mx.google.com with ESMTPSA id do3sm43163705pbb.5.2015.06.29.14.08.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 14:08:04 -0700 (PDT) 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, It seems that my table of contents links are no longer using the CUSTOM_ID property. Here's a minimal example: --8<---------------cut here---------------start------------->8--- * My Cool Section :PROPERTIES: :CUSTOM_ID: my-cool-section :END: * Other Section Please refer to [[#my-cool-section]]. --8<---------------cut here---------------end--------------->8--- Which exports as (trimmed down to just the body): --8<---------------cut here---------------start------------->8---

1 My Cool Section

2 Other Section

Please refer to 1.

Author: Mitchel Humpherys

Created: 2015-06-29 Mon 14:04

Validate

--8<---------------cut here---------------end--------------->8--- Specifically, you can see that the headline is linking to #orgheadline1:
  • 1. My Cool Section
  • The internal link seems to be using the CUSTOM_ID, as expected: Please refer to 1. Maybe I'm missing some new config option? I'm using org-mode master, currently at [a833d35159fd: "ox: Properly fix internal regexps after each buffer change"] (from 6 days ago). Notably, I do have [b856f66892b8: "ox-html: Prefer custom ID over internal references for links to headlines"], which seems to have fixed a similar problem with internal links to headlines. -- Mitch