[HTML] Full spoiler support (#285)

This commit is contained in:
FM-96
2020-04-05 20:30:15 +02:00
committed by GitHub
parent 5bce4b52ff
commit 18979c6a38
7 changed files with 114 additions and 11 deletions

View File

@@ -59,7 +59,7 @@ namespace DiscordChatExporter.Core.Rendering.Logic
// Spoiler
if (formattedNode.Formatting == TextFormatting.Spoiler)
return $"<span class=\"spoiler\">{innerHtml}</span>";
return $"<span class=\"spoiler spoiler--hidden\"><span class=\"spoiler-text\">{innerHtml}</span></span>";
// Quote
if (formattedNode.Formatting == TextFormatting.Quote)