using Xunit;
namespace MfGames.Markdown.Gemtext.Tests
{
public class LinkTests
[Fact]
public void BareLink()
string input = "[](/url)";
string expected = "=> /url";
string actual = MarkdownGemtext.ToGemtext(input);
Assert.Equal(expected, actual);
}
public void ListOfLinks()
string input = string.Join(
"\n",
"- [](/a)",
"- [Two](/b)",
"- [Three](/c/d)");
string expected = string.Join(
"=> /a",
"=> /b Two",
"=> /c/d Three");
public void MixedLinkOfLists()
"- Two",
"* Two",
public void PlainLink()
string input = "[test](/url)";
string expected = "=> /url test";