[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Testing: org-export-e-html
From: |
William Crandall |
Subject: |
Re: [O] Testing: org-export-e-html |
Date: |
Thu, 31 May 2012 23:42:05 -0700 |
Nicolas,
My email program (Gmail) deleted key HTML text,
Here, again, the core bit, as plain text, I hope it goes through:
--------------------------------------------------
Four input permutations:
1. [[directors]]
2. [[#directors]]
3. [[directors][Directors]]
4. [[#directors][Directors]]
As I see it (do let me know what I'm getting wrong!),
the old version gets all links right.
(But "old" makes one error(?) see next section.)
1. [[directors]]
old: <a href="#sec-1">directors</a>
new: <i>directors</i>
2. [[#directors]]
old: <a href="#directors">#directors</a>
new: <a href="#sec-1">Directors</a>
3. [[directors][Directors]]
old: <a href="#sec-1">Directors</a>
new: <i>Directors</i>
4. [[#directors][Directors]]
old: <a href="#directors">Directors</a>
new: <a href="#sec-1">Directors</a>
In no case is the output the same!
#4 would be most useful for my purposes, as it allows
identifying target links precisely.
--------------------------------------------------
Turning to the output for targets, the new version
does not close the <a> tag (as the old version does).
Other than that, "new" seems fine.
("Old" generates a <pre> section from the PROPERTIES drawer,
whether it is open or closed, with your encoding. Not my focus,
but is this an "old" bug?)
Org-mode input:
* Directors
:PROPERTIES:
:CUSTOM_ID: directors
:END:
HTML output:
old:
<div id="outline-container-directors" class="outline-2">
<h2 id="directors"><a name="sec-1" id="sec-1"></a>Directors</h2>
<div class="outline-text-2" id="text-directors">
<pre class="example">
PROPERTIES
:CUSTOM_ID: directors
</pre>
new:
<div id="outline-container-directors" class="outline-2">
<h2 id="directors"><a id="sec-1" name="sec-1"/>Directors</h2>
<div class="outline-text-2" id="text-directors">
[no <pre> section]
--------------------------------------------------
On Thu, May 31, 2012 at 8:56 PM, William Crandall <address@hidden> wrote:
>
>
> Hello Nicolas,
>
> To wrap my neurons around linking, I made a small test batch.
> There appear to be several difference between the "old" HTML
> export engine and the current version of the "new".
>
> Testing org-to-HTML export:
> old: C-c C-e h (org-export, in org-exp.el)
> new: M-x org-export-dispatch h (in org-export.el)
>
> Four input permutations:
>
> 1. [[directors]]
> 2. [[#directors]]
> 3. [[directors][Directors]]
> 4. [[#directors][Directors]]
>
>
> As I see it (do let me know what I'm getting wrong!),
> the old version gets all links right.
>
> (But "old" makes one error(?) see next section.)
>
> 1. [[directors]]
> old: <a href="#sec-1">directors</a>
> new: <i>directors</i>
- Re: [O] Testing: org-export-e-html,
William Crandall <=