Raw footnote markup tags appear in "teaser" blurbs for nodes

willfe - September 5, 2008 - 16:27
Project:Markdown filter
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

 
 

Drupal is a registered trademark of Dries Buytaert.