cmark

My personal build of CMark ✏️

Commit
436f003ae6a2aed1e661fa4364ae33991210d92d
Parent
318aa82f73448275f4653b18e7d154782aa220c5
Author
John MacFarlane <jgm@berkeley.edu>
Date

html.js - explicitly specify second parameter of escapeXml.

Diffstat

1 file changed, 3 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified js/lib/html.js 6 3 3
diff --git a/js/lib/html.js b/js/lib/html.js
@@ -70,7 +70,7 @@ var renderNodes = function(block) {
 
         switch (node.type) {
         case 'Text':
-            out(esc(node.literal));
+            out(esc(node.literal, false));
             break;
 
         case 'Softbreak':
@@ -125,7 +125,7 @@ var renderNodes = function(block) {
             break;
 
         case 'Code':
-            out(tag('code') + esc(node.literal) + tag('/code'));
+            out(tag('code') + esc(node.literal, false) + tag('/code'));
             break;
 
         case 'Document':
@@ -204,7 +204,7 @@ var renderNodes = function(block) {
             }
             cr();
             out(tag('pre') + tag('code', attrs));
-            out(esc(node.literal));
+            out(esc(node.literal, false));
             out(tag('/code') + tag('/pre'));
             cr();
             break;