public string Render(string paragraph) { var tokenizer = new MdTokenizer(); var tokens = tokenizer.Tokenize(paragraph); var renderer = new HTMLRenderer(); return(renderer.Render(tokens)); }
public void RenderCorrectly(List <Token> tokens, string expectedResult) { var renderer = new HTMLRenderer(); renderer.Render(tokens).Should().BeEquivalentTo(expectedResult); }