|
|
@ -249,9 +249,6 @@ namespace DiscordChatExporter.Services
|
|
|
|
// Pre inline (`text`)
|
|
|
|
// Pre inline (`text`)
|
|
|
|
content = Regex.Replace(content, "`([^`]+)`", "<span class=\"pre\">$1</span>");
|
|
|
|
content = Regex.Replace(content, "`([^`]+)`", "<span class=\"pre\">$1</span>");
|
|
|
|
|
|
|
|
|
|
|
|
// URL links
|
|
|
|
|
|
|
|
content = Regex.Replace(content, "((https?|ftp)://[^\\s/$.?#].[^\\s]*)", "<a href=\"$1\">$1</a>");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Bold (**text**)
|
|
|
|
// Bold (**text**)
|
|
|
|
content = Regex.Replace(content, "\\*\\*([^\\*]*?)\\*\\*", "<b>$1</b>");
|
|
|
|
content = Regex.Replace(content, "\\*\\*([^\\*]*?)\\*\\*", "<b>$1</b>");
|
|
|
|
|
|
|
|
|
|
|
@ -270,6 +267,9 @@ namespace DiscordChatExporter.Services
|
|
|
|
// New lines
|
|
|
|
// New lines
|
|
|
|
content = content.Replace("\n", "<br />");
|
|
|
|
content = content.Replace("\n", "<br />");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// URL links
|
|
|
|
|
|
|
|
content = Regex.Replace(content, "((https?|ftp)://[^\\s/$.?#].[^\\s<>]*)", "<a href=\"$1\">$1</a>");
|
|
|
|
|
|
|
|
|
|
|
|
// Meta mentions (@everyone)
|
|
|
|
// Meta mentions (@everyone)
|
|
|
|
content = content.Replace("@everyone", "<span class=\"mention\">@everyone</span>");
|
|
|
|
content = content.Replace("@everyone", "<span class=\"mention\">@everyone</span>");
|
|
|
|
|
|
|
|
|
|
|
|