Skip to content

Commit

Permalink
correctly strip footnote marker from popup note FS#1584
Browse files Browse the repository at this point in the history
Ignore-this: 3858b6ec18bc178597d098dfb96001b

darcs-hash:20090202180457-7ad00-f3d5344732acd4cc90ee08d120431e9fd88dab57.gz
  • Loading branch information
splitbrain committed Feb 2, 2009
1 parent d5bd720 commit f73e3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scripts/script.js
Expand Up @@ -316,7 +316,7 @@ function footnote(e){
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, '');
content = content.replace(/<sup>.*<\/sup>/gi, '');
content = content.replace(/^\s+(,\s+)+/,'');

// prefix ids on any elements with "insitu__" to ensure they remain unique
Expand Down

0 comments on commit f73e3dc

Please sign in to comment.