Implement a more sophisticated markdown parsing engine (#145)

This commit is contained in:
Alexey Golub
2019-03-03 14:16:12 +02:00
committed by GitHub
parent 88727a1fe6
commit f09f30c7bd
28 changed files with 563 additions and 307 deletions

View File

@@ -0,0 +1,22 @@
namespace DiscordChatExporter.Core.Markdown
{
public class LinkNode : Node
{
public string Url { get; }
public string Title { get; }
public LinkNode(string lexeme, string url, string title)
: base(lexeme)
{
Url = url;
Title = title;
}
public LinkNode(string lexeme, string url) : this(lexeme, url, url)
{
}
public override string ToString() => $"<Link> {Title}";
}
}