From fa70c40b339e539800c48bd7821b47b0edc6e161 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 11 Feb 2017 23:41:57 +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 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/web/app/common/scripts') diff --git a/src/web/app/common/scripts/text-compiler.js b/src/web/app/common/scripts/text-compiler.js index 25f36382fb..f47ce0f3c3 100644 --- a/src/web/app/common/scripts/text-compiler.js +++ b/src/web/app/common/scripts/text-compiler.js @@ -32,6 +32,8 @@ module.exports = function(tokens, shouldBreak, shouldEscape) { return '' + escape(token.content) + ''; case 'code': return '
' + token.codeHtml + '
'; + case 'inline-code': + return '' + escape(token.code) + ''; } }).join(''); -- cgit v1.2.3-freya