Skip to content

Commit

Permalink
Merge pull request #2 from ProgramFOX/master
Browse files Browse the repository at this point in the history
Fixed backtick bug.
  • Loading branch information
bjb568 committed Oct 6, 2014
2 parents 318b901 + 8229e99 commit f1d05e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmd.js
Expand Up @@ -20,7 +20,7 @@ function markdown(src) {
.replace(/([^;["])(https?:\/\/([^\s("&]+\.[^\s("&]+))/g, '$1' + '$3'.link('$2'))
.replace(/^(https?:\/\/([^\s("&]+\.[^\s("&]+))/g, '$2'.link('$1'))
.replace(/\*\*([^*]+)\*\*/g, '<strong>$1</strong>')
.replace(/\*([^*]+)\*/g, '<em>$1</em>') + (i == arr.length - 1 && i != 0 ? '</code>' : '');
.replace(/\*([^*]+)\*/g, '<em>$1</em>');
}
}).join('');
}
Expand Down

0 comments on commit f1d05e3

Please sign in to comment.