Experiment with markdown being supported in chat messgaes
This commit is contained in:
@@ -13,7 +13,8 @@ class Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
formatText() {
|
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);
|
return addNewlines(linked);
|
||||||
}
|
}
|
||||||
userColor() {
|
userColor() {
|
||||||
|
|||||||
Reference in New Issue
Block a user