mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-22 17:24:34 +00:00
Implement a more sophisticated markdown parsing engine (#145)
This commit is contained in:
18
DiscordChatExporter.Core.Markdown/MentionNode.cs
Normal file
18
DiscordChatExporter.Core.Markdown/MentionNode.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace DiscordChatExporter.Core.Markdown
|
||||
{
|
||||
public class MentionNode : Node
|
||||
{
|
||||
public string Id { get; }
|
||||
|
||||
public MentionType Type { get; }
|
||||
|
||||
public MentionNode(string lexeme, string id, MentionType type)
|
||||
: base(lexeme)
|
||||
{
|
||||
Id = id;
|
||||
Type = type;
|
||||
}
|
||||
|
||||
public override string ToString() => $"<{Type} mention> {Id}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user