mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-06-14 11:26:33 +00:00
Update DiscordChatExporter.Gui/Converters/MarkdownToInlinesConverter.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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>())
|
||||
|
||||
Reference in New Issue
Block a user