summaryrefslogtreecommitdiff
path: root/lib/scripts
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-01-19 02:06:14 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-01-19 02:06:14 +0100
commit29bfcd16ff6df2bbd7371cb73689464136bbe987 (patch)
treec8c18e656ac99bb22ff93faa2f398422978469f8 /lib/scripts
parentebbb1c49eccd0e5999b4204ea1782141fabceca5 (diff)
downloadrpg-29bfcd16ff6df2bbd7371cb73689464136bbe987.tar.gz
rpg-29bfcd16ff6df2bbd7371cb73689464136bbe987.tar.bz2
use <sup> to markup footnote anchors
Using the <sup> HTML tag ensures that footnotes are shown correctly when displayed outside the DokuWiki stylesheet (eg. in feedreaders) darcs-hash:20080119010614-7ad00-59426b5e1d44f0ab932867e19e42b71f260f9cc9.gz
Diffstat (limited to 'lib/scripts')
-rw-r--r--lib/scripts/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scripts/script.js b/lib/scripts/script.js
index 7e565e1cb..ddc88c728 100644
--- a/lib/scripts/script.js
+++ b/lib/scripts/script.js
@@ -352,7 +352,7 @@ function footnote(e){
if (!a){ return; }
// anchor parent is the footnote container, get its innerHTML
- var content = new String (a.parentNode.innerHTML);
+ var content = new String (a.parentNode.parentNode.innerHTML);
// strip the leading content anchors and their comma separators
content = content.replace(/<a\s.*?href=\".*\#fnt__\d+\".*?<\/a>/gi, '');