Add comments

pull/2220/head
Lorenzo Gasparini 9 years ago
parent 3c40901b34
commit 3b50d4b4ad

@ -204,6 +204,11 @@ define([
// and clear the math array (no need to keep it around).
//
var replace_math = function (text, math) {
//
// Replaces a math placeholder with its corresponding group.
// The math delimiters "\\(", "\\[", "\\)" and "\\]" are replaced
// removing one backslash in order to be interpreted correctly by MathJax.
//
var math_group_process = function (match, n) {
var math_group = math[n];
@ -216,6 +221,8 @@ define([
return math_group;
};
// Replace all the math group placeholders in the text
// with the saved strings.
text = text.replace(/@@(\d+)@@/g, math_group_process);
return text;

Loading…
Cancel
Save