cmark

My personal build of CMark ✏️

Commit
6549e9b1534d39a1d0f5d74e31edd93fba96f18a
Parent
82d7f367580ffd1ccc306cfb7de4e35f3b99ea99
Author
John MacFarlane <jgm@berkeley.edu>
Date

Fixed shadowing error.

Diffstat

1 file changed, 3 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified js/lib/inlines.js 6 3 3
diff --git a/js/lib/inlines.js b/js/lib/inlines.js
@@ -132,9 +132,9 @@ var parseBackticks = function(inlines) {
     }
     var afterOpenTicks = this.pos;
     var foundCode = false;
-    var match;
-    while (!foundCode && (match = this.match(/`+/m))) {
-        if (match === ticks) {
+    var matched;
+    while (!foundCode && (matched = this.match(/`+/m))) {
+        if (matched === ticks) {
             inlines.push({ t: 'Code', c: this.subject.slice(afterOpenTicks,
                                                       this.pos - ticks.length)
                      .replace(/[ \n]+/g,' ')