mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-29 05:55:21 -04:00
parent
2c0a63352c
commit
1d7264a71b
3 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -248,6 +248,10 @@ namespace DiscordChatExporter.Services
|
|||
// New lines
|
||||
content = content.Replace("\n", "<br />");
|
||||
|
||||
// Custom emojis (<:name:id>)
|
||||
content = Regex.Replace(content, "<:.*?:(\\d+)>",
|
||||
"<img class=\"emoji\" src=\"https://cdn.discordapp.com/emojis/$1.png\" />");
|
||||
|
||||
return content;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue