Custom Anchor

Expected Usage

Anchor expected usage links to the next line

In markdown document

<Anchor name="any-html-id-compatible-string-expected-usage" />

Generated DOM

<a name="any-html-id-compatible-string-expected-usage"></a>

With Children

Anchor with children links to the next line

In markdown document

<Anchor name="any-html-id-compatible-string-with-children" >
I must not put text here
</Anchor>

Generated DOM

<a name="any-html-id-compatible-string-with-children"></a>

In a title

Anchor in a title links to the next title

Usage

### Anchor in title links here <Anchor name="any-html-id-compatible-string-in-a-title" />

Generated DOM

<h4>
Anchor in title links here
<a name="any-html-id-compatible-string-in-a-title"></a>
</h4>

In a list

Anchor in a list links to firs item on the list

  • List 1
  • List 2

Usage

* List 1 <Anchor name="any-html-id-compatible-string-in-a-list" />

Generated DOM

<li>
List 1
<a name="any-html-id-compatible-string-in-a-list"></a>
</li>