diff --git a/lib/renderer.js b/lib/renderer.js index c9077b1..79ad78a 100644 --- a/lib/renderer.js +++ b/lib/renderer.js @@ -19,20 +19,18 @@ var default_rules = {}; default_rules.code_inline = function (tokens, idx, options, env, slf) { - var token = tokens[idx], - attrs = slf.renderAttrs(token); + var token = tokens[idx]; - return '' + + return '' + escapeHtml(tokens[idx].content) + ''; }; default_rules.code_block = function (tokens, idx, options, env, slf) { - var token = tokens[idx], - attrs = slf.renderAttrs(token); + var token = tokens[idx]; - return '' + + return '' + escapeHtml(tokens[idx].content) + '\n'; };