summaryrefslogtreecommitdiff
path: root/js/lib/html.js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-09 19:15:07 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-09 19:15:07 -0800
commit8c7ca2e30044925bcf611ddc816580d6746c7101 (patch)
tree299514669c39db05525370021b335875911f5d28 /js/lib/html.js
parenta1bc760fef3ae9e98f039fa50f31fc2d5eb877a2 (diff)
JS: Renamed 'c' property to 'literal' to match libcmark.
Diffstat (limited to 'js/lib/html.js')
-rw-r--r--js/lib/html.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/lib/html.js b/js/lib/html.js
index ca5b477..ce9b836 100644
--- a/js/lib/html.js
+++ b/js/lib/html.js
@@ -61,7 +61,7 @@ var renderNodes = function(block, options) {
switch (node.t) {
case 'Text':
- out(esc(node.c));
+ out(esc(node.literal));
break;
case 'Softbreak':
@@ -86,7 +86,7 @@ var renderNodes = function(block, options) {
break;
case 'Html':
- out(node.c);
+ out(node.literal);
break;
case 'Link':
@@ -120,7 +120,7 @@ var renderNodes = function(block, options) {
break;
case 'Code':
- out(tag('code') + esc(node.c) + tag('/code'));
+ out(tag('code') + esc(node.literal) + tag('/code'));
break;
case 'Document':
@@ -198,14 +198,14 @@ var renderNodes = function(block, options) {
}
cr();
out(tag('pre') + tag('code', attrs));
- out(this.escape(node.c));
+ out(this.escape(node.literal));
out(tag('/code') + tag('/pre'));
cr();
break;
case 'HtmlBlock':
cr();
- out(node.c);
+ out(node.literal);
cr();
break;