[HTML] Add support for block quotes

Closes #208
This commit is contained in:
Alexey Golub
2019-09-15 21:25:04 +03:00
parent cd042e5368
commit d88cd9b228
6 changed files with 39 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
@@ -81,6 +81,10 @@ namespace DiscordChatExporter.Core.Rendering
// Spoiler
if (formattedNode.Formatting == TextFormatting.Spoiler)
return $"<span class=\"spoiler\">{innerHtml}</span>";
// Quote
if (formattedNode.Formatting == TextFormatting.Quote)
return $"<div class=\"quote\">{innerHtml}</div>";
}
// Inline code block node