How can I disable inclusion of id
s when exporting file as html
Say for example, in the following file I have disabled toc
#+TITLE: Using org-mode
#+HTML_DOCTYPE: html5
#+OPTIONS: toc:nil html-style:nil html-scripts:nil
* Where to start
** Let’s begin here
Now if I export it with M-x
org-html-export-to-html
, I get the following output:
...
<div id="outline-container-org0c7ecf1" class="outline-2">
<h2 id="org0c7ecf1"><span class="section-number-2">1</span> Where to start</h2>
<div class="outline-text-2" id="text-1">
</div>
<div id="outline-container-orga4a6d26" class="outline-3">
<h3 id="orga4a6d26"><span class="section-number-3">1.1</span> Let’s begin here</h3>
</div>
</div>
...
I would like to not add the id
attribute at all unless a CUSTOM_ID
property is set or toc
is enabled.
These randomly generated id
s break when regenerated and thus make it less useful as an id
that can be linked from some other source.
As a side note, this results in unnecessary noise in commits (that's the primary reason I'm trying to avoid this).