diff --git a/DiscordChatExporter/Resources/ExportService/DarkTheme.css b/DiscordChatExporter/Resources/ExportService/DarkTheme.css index 9ca9d5b..47937e5 100644 --- a/DiscordChatExporter/Resources/ExportService/DarkTheme.css +++ b/DiscordChatExporter/Resources/ExportService/DarkTheme.css @@ -116,4 +116,10 @@ div.msg-attachment { img.msg-attachment { max-height: 500px; max-width: 50%; +} + +img.emoji { + height: 24px; + width: 24px; + vertical-align: -.4em; } \ No newline at end of file diff --git a/DiscordChatExporter/Resources/ExportService/LightTheme.css b/DiscordChatExporter/Resources/ExportService/LightTheme.css index 83b139a..3e58512 100644 --- a/DiscordChatExporter/Resources/ExportService/LightTheme.css +++ b/DiscordChatExporter/Resources/ExportService/LightTheme.css @@ -114,4 +114,10 @@ div.msg-attachment { img.msg-attachment { max-height: 500px; max-width: 50%; +} + +img.emoji { + height: 24px; + width: 24px; + vertical-align: -.4em; } \ No newline at end of file diff --git a/DiscordChatExporter/Services/ExportService.cs b/DiscordChatExporter/Services/ExportService.cs index 34359b6..9ace7c5 100644 --- a/DiscordChatExporter/Services/ExportService.cs +++ b/DiscordChatExporter/Services/ExportService.cs @@ -248,6 +248,10 @@ namespace DiscordChatExporter.Services // New lines content = content.Replace("\n", "
"); + // Custom emojis (<:name:id>) + content = Regex.Replace(content, "<:.*?:(\\d+)>", + ""); + return content; } }