From bc3006f3c41297536788ec20ea012ba0a4d0ee24 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 18 Mar 2017 01:16:32 +0900 Subject: #277 --- src/web/app/common/scripts/text-compiler.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (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 2edffbb766..d4570ca923 100644 --- a/src/web/app/common/scripts/text-compiler.js +++ b/src/web/app/common/scripts/text-compiler.js @@ -21,8 +21,10 @@ module.exports = (tokens, shouldBreak) => { .replace(/(\r\n|\n|\r)/g, shouldBreak ? '
' : ' '); case 'bold': return '' + escape(token.bold) + ''; - case 'link': + case 'url': return ''; + case 'link': + return '' + escape(token.title) + ''; case 'mention': return '' + token.content + ''; case 'hashtag': // TODO -- cgit v1.2.3-freya