From e19899962edfa9005e1f8fdbc56b1c8e7982864c Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 12 Feb 2017 02:38:47 +0900 Subject: インラインのコードでもシンタックスハイライトを有効化 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/app/common/scripts/text-compiler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/web/app/common') diff --git a/src/web/app/common/scripts/text-compiler.js b/src/web/app/common/scripts/text-compiler.js index f47ce0f3c3..62e70463ad 100644 --- a/src/web/app/common/scripts/text-compiler.js +++ b/src/web/app/common/scripts/text-compiler.js @@ -31,9 +31,9 @@ module.exports = function(tokens, shouldBreak, shouldEscape) { case 'hashtag': // TODO return '' + escape(token.content) + ''; case 'code': - return '
' + token.codeHtml + '
'; + return '
' + token.html + '
'; case 'inline-code': - return '' + escape(token.code) + ''; + return '' + token.html + ''; } }).join(''); -- cgit v1.2.3-freya