Jump to:
| Project: | Markdown filter |
| Version: | 5.x-1.0 |
| Component: | Documentation |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Issue Summary
In using this module to insert footnotes into nodes, all is well when a node is viewed in full (footnotes appear where they're supposed to, with superscripted numerals in the text body linking to them).
When a footnote reference is made in text that appears in the teaser, though, the tag is unchanged, like so:
This is a regular sentence. [^1]
< !--break-- >
[^1]: But it's got a footnote attached to it.On the main page (or in any view that includes the teaser), all you'll see is "This is a regular sentence. [^1]" Note the raw markup ("[^1]") instead of a superscripted numeral.
A workaround for this is to include the footnote body in the teaser (making sure the definition for the footnote body occurs *before* < !--break-- >) but this is less than ideal as it grows the teaser unnecessarily.
Any suggestions how to correct this? Just transforming [^1] into a superscripted numeral would be fine, but even just removing it entirely from the teaser text is also fine.
Comments
#1
I think removing footnote references to missing footnotes entirely (after everything else happens) makes the most sense. There's not much value in referencing a footnote you can't actually get to.
#2
I think this should be handled with documentation to clarify that footnotes won't work in teasers.