Bugs: Browse | Submit New | Admin

[#29576] Headers can't have footnotes

Date:
2012-05-21 17:50
Priority:
3
Submitted By:
. . (korthaerd)
Assigned To:
Thomas Leitner (gettalong)
Category:
Converter
State:
Closed
Summary:
Headers can't have footnotes

Detailed description
The folowing exemple doesn't render corectly when I use footnotes on a header.

* Will be replaced with the ToC
{:toc}

# Header A [^1]

Header B[^2]
========

## Header C[^3] ##


[^1]: Footnote 1 
[^2]: Footnote 2
[^3]: Footnote 3



It render that way :

<div class="entry-content"><ul id="markdown-toc">
  <li><a href="#header-a-1">Header A <sup id="fnref:1"><a href="#fn:1"
rel="footnote">4</a></sup></a></li>
  <li><a href="#header-b2">Header B<sup id="fnref:2"><a href="#fn:2"
rel="footnote">5</a></sup></a>    <ul>
      <li><a href="#header-c3">Header C<sup id="fnref:3"><a href="#fn:3"
rel="footnote">6</a></sup></a></li>
    </ul>
  </li>
</ul>

<h1 id="header-a-1">Header A <sup id="fnref:1"><a href="#fn:1"
rel="footnote">1</a></sup></h1>

<h1 id="header-b2">Header B<sup id="fnref:2"><a href="#fn:2"
rel="footnote">2</a></sup></h1>

<h2 id="header-c3">Header C<sup id="fnref:3"><a href="#fn:3"
rel="footnote">3</a></sup></h2>

<div class="footnotes">
  <ol>
    <li id="fn:1">
      <p>Footnote 1 <a href="#fnref:1" rel="reference">&#8617;</a></p>
    </li>
    <li id="fn:2">
      <p>Footnote 2<a href="#fnref:2" rel="reference">&#8617;</a></p>
    </li>
    <li id="fn:3">
      <p>Footnote 3<a href="#fnref:3" rel="reference">&#8617;</a></p>
    </li>
  </ol>
</div>
</div>

Add A Comment: Notepad

Please login


Followup

Message
Date: 2012-06-02 06:51
Sender: Thomas Leitner

Done - available in next release.
Date: 2012-05-21 23:40
Sender: . .

No, it's it.
Thanks you for the fast reply !
Date: 2012-05-21 19:51
Sender: Thomas Leitner

The problem I see is that the TOC also has <sup> elements
with an ID that is already used. So the TOC generating code will
have to be adjusted.

Are there any other problems?

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
close_date2012-06-02 06:512012-06-02 06:51gettalong
category_idNone2012-06-02 06:51gettalong
status_idOpen2012-06-02 06:51gettalong
assigned_tonone2012-05-21 19:51gettalong