summaryrefslogtreecommitdiff
path: root/js/lib/xml.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/xml.js')
-rw-r--r--js/lib/xml.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/lib/xml.js b/js/lib/xml.js
index 30b44c8..056bcc5 100644
--- a/js/lib/xml.js
+++ b/js/lib/xml.js
@@ -111,7 +111,9 @@ var renderNodes = function(block) {
}
break;
case 'CodeBlock':
- attrs.push(['info', node.info]);
+ if (node.info) {
+ attrs.push(['info', node.info]);
+ }
break;
case 'Header':
attrs.push(['level', String(node.level)]);