This commit is contained in:
syuilo
2017-02-09 19:41:17 +09:00
parent e04c03007b
commit 21b72f7854
3 changed files with 209 additions and 2 deletions

View File

@ -31,7 +31,7 @@ module.exports = function(tokens, shouldBreak, shouldEscape) {
case 'hashtag': // TODO
return '<a>' + escape(token.content) + '</a>';
case 'code':
return '<pre><code>' + escape(token.code) + '</code></pre>';
return '<pre><code>' + token.codeHtml + '</code></pre>';
}
}).join('');