Browse Source

Experiment with markdown being supported in chat messgaes

pull/17/head
Gabe Kangas 5 years ago
parent
commit
4c194afce9
  1. 3
      webroot/js/message.js

3
webroot/js/message.js

@ -13,7 +13,8 @@ class Message { @@ -13,7 +13,8 @@ class Message {
}
formatText() {
var linked = autoLink(this.body, { embed: true });
var markdownToHTML = new showdown.Converter({ emoji: true, openLinksInNewWindow: true, tables: false, strikethrough: false, simplifiedAutoLink: false}).makeHtml(this.body);
var linked = autoLink(markdownToHTML, { embed: true });
return addNewlines(linked);
}
userColor() {

Loading…
Cancel
Save