Suggestion of implementation
Have all H1, H2, ect auto create anchor points directly as an html element with conflict resilience with random note unique addition or only the random addition to help match current share URL style;
<h1 name="chapter-1-(iiop)">Chapter 1</a>
<h2 name="the-first-point-(273j)">The First Point</a>
<h1 name="chapter-2-(182u)">Chapter 2</a>
<h2 name="the-second-point-(273o)">The Second Point</a>
<h2 name="the-third-point-(yh76)">The Third Point</a>
<h3 name="refs-(iow1)">Ref's</a>
<h1 name="chapter-3-(ei8h)">Chapter 3</a>
<h3 name="refs-(10dj)">Ref's</a>
or
<h1 name="iiop">Chapter 1</a>
<h2 name="273j">The First Point</a>
<h1 name="182u">Chapter 2</a>
<h2 name="273o">The Second Point</a>
<h2 name="yh76">The Third Point</a>
<h3 name="iow1">Ref's</a>
<h1 name="ei8h">Chapter 3</a>
<h3 name="10dj">Ref's</a>
Then have an auto generated contents option to add and link/jump to (with style options), with flexibility when adding size options without breaking formats (see "10dj" in example) and auto refresh on note ether in near real time or every time a manual refresh/note is opened. Example 1 style wise;
Chapter 1
The First Point
Chapter 2
The Second Point
The Third Point
Ref's
Chapter 3
Ref's
Example 2 style wise;
Chapter 1
The First Point
Chapter 2
The Second Point
The Third Point
Ref's
Chapter 3
Ref's
Example 3 style wise:
Chapter 1
The First Point
Chapter 2
The Second Point
The Third Point
Ref's
Chapter 3
Ref's
Example 4 style wise:
Chapter 1: The First Point
Chapter 2: The Second Point / The Third Point >> Ref's
Chapter 3: Ref's
-------------------------
Edit: One last idea, have in link function (or a right click insert) searchable links to headers in document or title with link (again searchable popup) for quick reference.