anchor names from headers (Setext and atx)?

John MacFarlane jgm at berkeley.edu
Sat Sep 22 15:26:51 EDT 2007


Pandoc generates

<h2 id="this-is-an-h2">This is an H2</h2>

For the details, see
http://johnmacfarlane.net/pandoc/README.html#header-identifiers-in-html

John

+++ Jeremy C. Reed [Sep 22 07 13:22 ]:

> It would be useful if defining headers (either Setext and atx style), if

> Markdown would also generate corresponding anchors:

>

> ## This is an H2 ##

>

> would create:

>

> <a name="This is an H2"/>

> <h2>This is an H2</h2>

>

> Or something like that.

>

> Or is that available some different way?

>

> Thanks,

>

> Jeremy C. Reed

> _______________________________________________

> Markdown-Discuss mailing list

> Markdown-Discuss at six.pairlist.net

> http://six.pairlist.net/mailman/listinfo/markdown-discuss

>



More information about the Markdown-Discuss mailing list