Permalink
Browse files

correctly strip footnote marker from popup note FS#1584

Ignore-this: 3858b6ec18bc178597d098dfb96001b

darcs-hash:20090202180457-7ad00-f3d5344732acd4cc90ee08d120431e9fd88dab57.gz
  • Loading branch information...
1 parent d5bd720 commit f73e3dcb97a74d752ecef55f5d4f05bedf3d88cb @splitbrain committed Feb 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/scripts/script.js
View
@@ -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

0 comments on commit f73e3dc

Please sign in to comment.