Permalink
Browse files

Find multiple footnotes per line

  • Loading branch information...
1 parent 4f368f3 commit ae0152941b754d7e77317dc74dc8eb470bac3730 @cdaddr committed Jul 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/js/showdown.js
View
2 public/js/showdown.js
@@ -469,7 +469,7 @@ var _DoAnchors = function(text) {
// Turn Markdown link shortcuts into XHTML <a> tags.
//
- text = text.replace(/\[\^([A-Za-z0-9]+)\]/,
+ text = text.replace(/\[\^([A-Za-z0-9]+)\]/gm,
function(wholeMatch, m1) {
var id = _findFirst(g_footnotes, function(x){return x.id == m1;});

0 comments on commit ae01529

Please sign in to comment.