mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Support some additional markdown features
This commit is contained in:
parent
d9509f5606
commit
0f2b9c5e0e
@ -8,12 +8,15 @@ class Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
formatText() {
|
formatText() {
|
||||||
|
showdown.setFlavor('github');
|
||||||
var markdownToHTML = new showdown.Converter({
|
var markdownToHTML = new showdown.Converter({
|
||||||
emoji: true,
|
emoji: true,
|
||||||
openLinksInNewWindow: true,
|
openLinksInNewWindow: true,
|
||||||
tables: false,
|
tables: false,
|
||||||
strikethrough: false,
|
strikethrough: false,
|
||||||
simplifiedAutoLink: false,
|
simplifiedAutoLink: false,
|
||||||
|
literalMidWordUnderscores: true,
|
||||||
|
strikethrough: true,
|
||||||
}).makeHtml(this.body);
|
}).makeHtml(this.body);
|
||||||
var linked = autoLink(markdownToHTML, { embed: true });
|
var linked = autoLink(markdownToHTML, { embed: true });
|
||||||
return addNewlines(linked);
|
return addNewlines(linked);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user