diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-01-19 02:06:14 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-01-19 02:06:14 +0100 |
commit | 29bfcd16ff6df2bbd7371cb73689464136bbe987 (patch) | |
tree | c8c18e656ac99bb22ff93faa2f398422978469f8 /lib | |
parent | ebbb1c49eccd0e5999b4204ea1782141fabceca5 (diff) | |
download | rpg-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')
-rw-r--r-- | lib/scripts/script.js | 2 | ||||
-rw-r--r-- | lib/tpl/default/design.css | 7 |
2 files changed, 1 insertions, 8 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, ''); diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css index 0b4e29634..3e3c9310e 100644 --- a/lib/tpl/default/design.css +++ b/lib/tpl/default/design.css @@ -613,14 +613,7 @@ div.dokuwiki div.fn { font-size: 90%; } -div.dokuwiki a.fn_top { - vertical-align: super; - font-size: 80%; -} - div.dokuwiki a.fn_bot { - vertical-align: super; - font-size: 80%; font-weight: bold; } |