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

@ -107,6 +107,29 @@ a
*
cursor pointer
pre > code
.comment
opacity 0.5
.string
color #e96900
.keyword
color #2973b7
&.true
&.false
&.null
&.nil
&.undefined
color #ae81ff
.symbol
color #42b983
.number
color #ae81ff
mk-locker
display block
position fixed

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('');