Skip to content

Commit

Permalink
message-list: handle multine messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-go authored and indutny committed Sep 24, 2019
1 parent 76bc808 commit e55e08a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"electron-window-state": "^5.0.3",
"esm": "^3.2.25",
"promise-waitlist": "^1.5.0",
"remark-breaks": "^1.0.3",
"sodium-universal": "^2.0.0"
},
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/redux/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import moment from 'moment';
import remark from 'remark';
import remarkReact from 'remark-react';
import remarkEmoji from 'remark-emoji';
import breaks from 'remark-breaks';

import binarySearch from 'binary-search';
import { prerenderUserName } from '../utils';
Expand Down Expand Up @@ -68,6 +69,7 @@ export function enrichMessage(message) {
a: ExternalLink,
}
})
.use(breaks)
.use(remarkEmoji)
.processSync(message.json.text || '').contents;

Expand Down

0 comments on commit e55e08a

Please # to comment.