cmark

My personal build of CMark ✏️

Commit
7f4b2f7f3949f807d5dafe2219280a0f1419b0e2
Parent
518eaeca38dfc6f840907f6bcc1ce28826801888
Author
John MacFarlane <jgm@berkeley.edu>
Date

Fixed bug that causes hang on bare `<` inside link label.

Diffstat

1 file changed, 2 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified js/stmd.js 5 2 3
diff --git a/js/stmd.js b/js/stmd.js
@@ -534,9 +534,8 @@
                 this.parseBackticks();
                 break;
             case '<':
-                if (!(this.parseAutolink())) {
-                    this.parseHtmlTag();
-                }
+                this.parseAutolink() || this.parseHtmlTag() ||
+                    this.pos++;
                 break;
             case '[':  // nested []
                 nest_level++;