diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-11 23:41:57 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-11 23:41:57 +0900 |
| commit | fa70c40b339e539800c48bd7821b47b0edc6e161 (patch) | |
| tree | 0ba5e17c8ca06c976a910c4ca9f874376e6c1f36 /src/web/app/common/scripts | |
| parent | [Client] Fix bug (diff) | |
| download | sharkey-fa70c40b339e539800c48bd7821b47b0edc6e161.tar.gz sharkey-fa70c40b339e539800c48bd7821b47b0edc6e161.tar.bz2 sharkey-fa70c40b339e539800c48bd7821b47b0edc6e161.zip | |
インラインコードを実装
Diffstat (limited to 'src/web/app/common/scripts')
| -rw-r--r-- | src/web/app/common/scripts/text-compiler.js | 2 |
1 files changed, 2 insertions, 0 deletions
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 '<a>' + escape(token.content) + '</a>'; case 'code': return '<pre><code>' + token.codeHtml + '</code></pre>'; + case 'inline-code': + return '<code>' + escape(token.code) + '</code>'; } }).join(''); |