Render IRC colors and formatting, closes #46

This commit is contained in:
Ken-Håvard Lieng 2020-05-16 08:25:58 +02:00
parent ed432881ef
commit 0c902f8ac8
3 changed files with 411 additions and 53 deletions

View file

@ -8,6 +8,7 @@ import {
isChannel,
formatDate
} from 'utils';
import colorify from 'utils/colorify';
import createReducer from 'utils/createReducer';
import { getApp } from './app';
import { getSelectedTab } from './tab';
@ -224,7 +225,8 @@ function initMessage(message, tab, state) {
6 * charWidth,
windowWidth
);
message.content = linkify(message.content);
message.content = colorify(linkify(message.content));
return message;
}