Update DiscordChatExporter.Gui/Converters/MarkdownToInlinesConverter.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Oleksii Holub
2026-02-24 20:07:27 +02:00
committed by GitHub
parent 910b1d9334
commit 752263a4da

View File

@@ -147,7 +147,15 @@ public class MarkdownToInlinesConverter : IValueConverter
inlines.Add(new LineBreak());
isFirst = false;
var prefix = list.IsOrdered ? $"{itemOrder++}. " : $"{list.BulletType} ";
var bulletChar = list.BulletType switch
{
BulletType.Dash => '-',
BulletType.Plus => '+',
BulletType.Asterisk => '*',
_ => '-'
};
var prefix = list.IsOrdered ? $"{itemOrder++}. " : $"{bulletChar} ";
inlines.Add(new Run(prefix));
foreach (var subBlock in listItem.OfType<ParagraphBlock>())