summaryrefslogtreecommitdiffstats
path: root/web/react/utils/text_formatting.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-09-22 13:21:58 -0400
committerChristopher Speller <crspeller@gmail.com>2015-09-22 13:21:58 -0400
commite7d408585af5df35c6aff1558de246c8398ef71c (patch)
tree3b898d92181da05ac6b04b7eb97111670de882e2 /web/react/utils/text_formatting.jsx
parent130e73ca023c76abf1ddd71a8b1373efab1c8375 (diff)
downloadchat-e7d408585af5df35c6aff1558de246c8398ef71c.tar.gz
chat-e7d408585af5df35c6aff1558de246c8398ef71c.tar.bz2
chat-e7d408585af5df35c6aff1558de246c8398ef71c.zip
Revert "PLT-289 Added parsing for named emojis to TextFormatting and removed emojify"
Diffstat (limited to 'web/react/utils/text_formatting.jsx')
-rw-r--r--web/react/utils/text_formatting.jsx6
1 files changed, 0 insertions, 6 deletions
diff --git a/web/react/utils/text_formatting.jsx b/web/react/utils/text_formatting.jsx
index be82f7b9c..4e390f708 100644
--- a/web/react/utils/text_formatting.jsx
+++ b/web/react/utils/text_formatting.jsx
@@ -3,7 +3,6 @@
const Autolinker = require('autolinker');
const Constants = require('./constants.jsx');
-const Emoticons = require('./emoticons.jsx');
const Markdown = require('./markdown.jsx');
const UserStore = require('../stores/user_store.jsx');
const Utils = require('./utils.jsx');
@@ -18,7 +17,6 @@ const markdownRenderer = new Markdown.MattermostMarkdownRenderer();
// - searchTerm - If specified, this word is highlighted in the resulting html. Defaults to nothing.
// - mentionHighlight - Specifies whether or not to highlight mentions of the current user. Defaults to true.
// - singleline - Specifies whether or not to remove newlines. Defaults to false.
-// - emoticons - Enables emoticon parsing. Defaults to true.
// - markdown - Enables markdown parsing. Defaults to true.
export function formatText(text, options = {}) {
if (!('markdown' in options)) {
@@ -36,10 +34,6 @@ export function formatText(text, options = {}) {
const tokens = new Map();
// replace important words and phrases with tokens
- if (!('emoticons' in options) || options.emoticon) {
- output = Emoticons.handleEmoticons(output, tokens);
- }
-
output = autolinkUrls(output, tokens, !!options.markdown);
output = autolinkAtMentions(output, tokens);
output = autolinkHashtags(output, tokens);