インラインコードを実装

This commit is contained in:
syuilo
2017-02-11 23:41:57 +09:00
parent 8107a6e539
commit fa70c40b33
6 changed files with 38 additions and 7 deletions

View File

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