diff --git a/public/js/extra.js b/public/js/extra.js index 12342f0..5eb1f28 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -640,8 +640,10 @@ var mathjaxPlugin = new Plugin( // this function will be called when something matches function (match, utils) { - //var code = $(match).text(); - return '' + match[0] + ''; + if (match.index == 0) + return '' + match[0] + ''; + else + return match.input.slice(0, match[0].length); } ); //TOC