anchor names from headers (Setext and atx)?
John MacFarlane
jgm at berkeley.edu
Mon Sep 24 13:30:21 EDT 2007
> 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>`...
John
More information about the Markdown-Discuss
mailing list