summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/common/scripts')
-rw-r--r--src/web/app/common/scripts/text-compiler.js4
1 files changed, 2 insertions, 2 deletions
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 '<a>' + escape(token.content) + '</a>';
case 'code':
- return '<pre><code>' + token.codeHtml + '</code></pre>';
+ return '<pre><code>' + token.html + '</code></pre>';
case 'inline-code':
- return '<code>' + escape(token.code) + '</code>';
+ return '<code>' + token.html + '</code>';
}
}).join('');