WordPress Plugin: Textile Footnote Tweak
The Problem
The markup filter I use for WordPress, Adam Gessaman's implementation of Textile 2 has footnote behavior that I didn't like. When you use Textile to create a footnote, the resulting link goes to #fn1 or #fn2 or whatever. If you're displaying a page that happens to have multiple posts with footnotes, the browser gets confused, because there might be five instances of #fn1 on the page.
The Solution
- Download textileFootnoteTweak.zip
- Unpack, upload, and activate
- There is no step 3.
This is a super-simple filter that simply creates footnotes that include the post's unique numerical ID. Instead of #fn1 you get #p3275-fn1 . Browser confusion solved.
Notes
This filter works completely behind the scenes; you don't need to change the way you markup your posts with Textile at all.
As mentioned above, this plugin is meant to be used with Adam Gessaman's Textile 2 plugin. It might work with other WordPress versions of Textile, but no promises are made1.
1 Acually, no promises are made, full stop. This is really just a hack I'm sharing. YMMV.