diff --git a/DiscordChatExporter/Services/ExportService.cs b/DiscordChatExporter/Services/ExportService.cs index 0cee8933..a798e6c1 100644 --- a/DiscordChatExporter/Services/ExportService.cs +++ b/DiscordChatExporter/Services/ExportService.cs @@ -91,10 +91,10 @@ namespace DiscordChatExporter.Services "$1"); // Preformatted multiline - content = Regex.Replace(content, "```([^`]*?)```", e => "
" + e.Groups[1].Value + ""); + content = Regex.Replace(content, "```([^`]*?)```", e => "" + e.Groups[1].Value + ""); // Preformatted - content = Regex.Replace(content, "`([^`]*?)`", e => "
" + e.Groups[1].Value + ""); + content = Regex.Replace(content, "`([^`]*?)`", e => "" + e.Groups[1].Value + ""); // Bold content = Regex.Replace(content, "\\*\\*([^\\*]*?)\\*\\*", "$1"); diff --git a/DiscordChatExporter/Services/ExportTemplate.html b/DiscordChatExporter/Services/ExportTemplate.html index e03a7923..a2918c06 100644 --- a/DiscordChatExporter/Services/ExportTemplate.html +++ b/DiscordChatExporter/Services/ExportTemplate.html @@ -18,21 +18,19 @@ a:hover { text-decoration: underline; } - pre { - margin: 0; + span.pre { padding-left: 2px; padding-right: 2px; background-color: #f9f9f9; font-family: Consolas, Courier New, Courier, Monospace; - display: inline; } div#info { - width: 100%; + max-width: 100%; margin-bottom: 20px; color: #939799; } div#log { - width: 100%; + max-width: 100%; } div.msg { display: flex;