Quote:
Originally Posted by capidamonte
user_none, could you give an example where this would fail?
|
Code:
<a id="toc_1" />
<p>Chapter 1:</p>
<p>I am the first chapter.</p>
Code:
<h1>Chatper 2:</h1>
<p id="toc_2">I am the second chapter. Notice the toc marker is on the content not the heading.</p>
Code:
<div id="toc_3">I am the third chapter. Notice I don't have a heading. Yet because the TOC can just point to a location and stores the text separately I will show in the TOC as "Chapter 3".</div>