mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-29 14:05:18 -04:00
Refactor string checks and fix exception when exporting multiple channels
Fix #164
This commit is contained in:
parent
7951703cf2
commit
30cba7959f
20 changed files with 33 additions and 26 deletions
|
@ -92,7 +92,7 @@ namespace DiscordChatExporter.Core.Rendering
|
|||
if (node is MultilineCodeBlockNode multilineCodeBlockNode)
|
||||
{
|
||||
// Set language class for syntax highlighting
|
||||
var languageCssClass = multilineCodeBlockNode.Language != null
|
||||
var languageCssClass = !multilineCodeBlockNode.Language.IsNullOrWhiteSpace()
|
||||
? "language-" + multilineCodeBlockNode.Language
|
||||
: null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue