Footnote references are not resolved unless put after letter #11

Open
Mekk opened this Issue Apr 18, 2012 · 1 comment

Comments

Projects
None yet
1 participant

Mekk commented Apr 18, 2012

>>> import textile

This is OK:

>>> textile.textile("Ala ma kota[1]")
'\t<p>Ala ma kota<sup class="footnote"><a href="#fn217a423d-2aca-4b3b-b18d-65cfc5cf4022">1</a></sup></p>'

But this is not:

>>> textile.textile("Ala ma kota”[1]")
'\t<p>Ala ma kota\xe2\x80\x9d[1]</p>'
>>> textile.textile("Ala ma kota\"[1]")
'\t<p>Ala ma kota&#8221;[1]</p>'
>>> textile.textile("Blah,[3] blah, blah")
'\t<p>Blah,[3] blah, blah</p>'

In general it looks like [no] markers must be put after letter to be handled properly. In real texts I often see them after quotes or punctuation.

Tested on textile 2.1.4 (as present in Ubuntu 10.04)

Mekk commented Apr 18, 2012

Also this is frequent problematic case:

(OK)

>>> textile.textile("_Blah[1]_")
'\t<p><em>Blah<sup class="footnote"><a href="#fn03f467c3-37eb-489b-90cd-bcc4e5f62659">1</a></sup></em></p>'

(bad but often seen)

>>> textile.textile("_Blah_[1]")
'\t<p><em>Blah</em>[1]</p>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment