mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-07-21 13:06:20 +02: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());
|
inlines.Add(new LineBreak());
|
||||||
isFirst = false;
|
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));
|
inlines.Add(new Run(prefix));
|
||||||
|
|
||||||
foreach (var subBlock in listItem.OfType<ParagraphBlock>())
|
foreach (var subBlock in listItem.OfType<ParagraphBlock>())
|
||||||
|
|||||||
Reference in New Issue
Block a user