anchor names from headers (Setext and atx)?

Ben Wilson dausha at gmail.com
Mon Sep 24 13:04:13 EDT 2007


On 9/22/07, John MacFarlane <jgm at berkeley.edu> wrote:

> 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


Just a minor nit, but it looks like Pandoc produces both the id but
also an anchor tag (below). However, it does not produce an <a
name=''>, which I believe is valid HTML. I don't thing browsers key on
the id tag of the header.

<h2 id="header-identifiers-in-html"><a href="#TOC-header-identifiers-in-html">


--
Ben Wilson
"Words are the only thing which will last forever" Churchill


More information about the Markdown-Discuss mailing list