cmark

My personal build of CMark ✏️

Commit
94cd37405040b27ab20c2f373c08e61170365ff3
Parent
c772cd9c1b55f46306260977835f8d315275ee94
Author
John MacFarlane <jgm@berkeley.edu>
Date

HTML renderer: throw error on unknown tag type.

This indicates a programming error.

Diffstat

1 file changed, 1 insertion, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified js/lib/html.js 2 1 1
diff --git a/js/lib/html.js b/js/lib/html.js
@@ -225,7 +225,7 @@ var renderNodes = function(block, options) {
             break;
 
         default:
-            console.log("Unknown node type " + node.t);
+            throw("Unknown node type " + node.t);
         }
 
     }