anchor names from headers (Setext and atx)?
Ben Wilson
dausha at gmail.com
Mon Sep 24 13:42:27 EDT 2007
Fancy that, you're right about id tags.[1] Shows I'm a bit older
school, I suppose? More like I've not been paying attention.
On 9/24/07, John MacFarlane <jgm at berkeley.edu> wrote:
> > 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">
>
> The anchor is a back-reference to the table of contents. (Note
> that it is produced only if '--toc' is specified on the command
> line.) And you certainly can link to `<h2 id="myheader">` using `<a
> href="#myheader">my header</a>`...
>
[1]: http://www.w3.org/TR/html4/struct/links.html#h-12.2.3
--
Ben Wilson
"Words are the only thing which will last forever" Churchill
More information about the Markdown-Discuss
mailing list