インラインコードを実装
This commit is contained in:
parent
8107a6e539
commit
fa70c40b33
6 changed files with 38 additions and 7 deletions
|
|
@ -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('');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue