Some autolinking settings

This commit is contained in:
Gabe Kangas 2020-07-30 00:05:31 -07:00
parent 6c0569aa95
commit 99c6009292

View File

@ -18,7 +18,13 @@ class Message {
literalMidWordUnderscores: true,
strikethrough: true,
}).makeHtml(this.body);
var linked = autoLink(markdownToHTML, { embed: true });
const linked = autoLink(markdownToHTML, {
embed: true,
removeHTTP: true,
linkAttr: {
target: '_blank'
}
});
return addNewlines(linked);
}
userColor() {