Hello Jambunathan and Nicolas, Thanks for your recent updates!
Links are proving to be quite a challenge. Here is my new test file, and "new" and "old" HTML output, comparing the two engines: "old": C-c C-e h (org-export, in org-exp.el) "new": M-x org-export-dispatch h (in org-export.el) The entire content of test.org: ---------------------------------------------------------------------- --------------------------------------------------------- Org (input): Link and description, to anchor in headline: [[#directors][Directors]] Link and description, to anchor in paragraph: [[#bc][BC]] * <<directors>>Directors Paragraph with a /dedicated target/: <<bc>> -----------------------------------------------------------------[end] ---------------------------------------------------------------------- Reading the Manual (7.8.11), Section 4.2, this org code should, I think, export exactly as the "old" engine does it, with anchor href's linking to two targets (Firefox renders it perfectly): ---------------------------------------------------------------------- ------------------------------------------------- "Old" HTML (output): <p> Link and description, to anchor in headline: <a href="#directors">Directors</a> </p> <p> Link and description, to anchor in paragraph: <a href="#bc">BC</a> </p> <div id="outline-container-1" class="outline-2"> <h2 id="sec-1"><a name="directors" class="target">directors</a> Directors</h2> <div class="outline-text-2" id="text-1"> <p> Paragraph with a <i>dedicated target</i>: <a name="bc" class="target">bc</a> BC </p> </div> </div> -----------------------------------------------------------------[end] ---------------------------------------------------------------------- The "old" engine is fine (if attuned to HTML4 more than HTML5). Here is the "new" output (Org-mode release_7.8.11-32-g02f3ee). ---------------------------------------------------------------------- ------------------------------------------------- "New" HTML (output): <p> Link and description, to anchor in headline: <i>Directors</i> </p> <p> Link and description, to anchor in paragraph: <i>BC</i> </p> <div id="outline-container-1" class="outline-2"> <h2 id="sec-1"><a id="directors" name="directors"/>Directors</h2> <div class="outline-text-2" id="text-1"> <p> Paragraph with a <i>dedicated target</i>: <a id="bc" name="bc"/>BC </p> </div> </div> -----------------------------------------------------------------[end] ---------------------------------------------------------------------- I see four discrepancies, in two groups: 1. Both links out (first two p's), to id's in an <h> and a <p>, do not generate links (<a href="#foo">foo</a>). 2. At both anchors, <a>, in the <h2> and the <p>, the <a> tag is not closed with an </a>. This may be related to the errors noted in point one, as the HTML is malformed without them. I *really like* the direction the new engine is heading, with id attributes in <a> tags, and making the <<target>> non-visible. And tighter spacing. All good stuff! Many thanks for doing the heavy lifting! I look forward to your next commits. -BC Org-mode: 7.8.11 (release_7.8.11-32-g02f3ee) Emacs: 24.1.50.1 Windows 7 On Fri, Jun 1, 2012 at 9:38 AM, Nicolas Goaziou <n.goaz...@gmail.com> wrote: > > Hello, > > William Crandall <bc3141...@gmail.com> writes: > >