diff --git a/README.md b/README.md index d9bea19..db5a9e4 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Live markdown editor based on MathJax and Marked ## How it works? -text → Escape tags → MathJax → Unescape some sutff → Markdown → preview +text → Escape tags → MathJax → Unescape some stuff → Markdown → preview ## Demo diff --git a/editor.html b/editor.html index 2b6a89c..89bfcf6 100644 --- a/editor.html +++ b/editor.html @@ -96,7 +96,7 @@ preview: null, // filled in by Init below buffer: null, // filled in by Init below - timeout: null, // store setTimout id + timeout: null, // store setTimeout id mjRunning: false, // true when MathJax is processing oldText: null, // used to check if an update is needed @@ -193,17 +193,17 @@ var inside_code = false; for (var i = 0; i < lines.length; i++) { - // a hack to properly rendre the blockquotes + // a hack to properly render the blockquotes if (lines[i].startsWith('>')) { lines[i] = lines[i].replace(/>/g, '>'); } - // rendrer properly stuff like this + // render properly stuff like this // ```c // if (a > b) // ``` if (inside_code) { - // inside the code we descape stuff + // inside the code we unescape stuff lines[i] = lines[i] .replace(/</g, '<') .replace(/>/g, '>')