Example #1
0
        public string Render(string paragraph)
        {
            var tokenizer = new MdTokenizer();
            var tokens    = tokenizer.Tokenize(paragraph);
            var renderer  = new HTMLRenderer();

            return(renderer.Render(tokens));
        }
Example #2
0
        public void RenderCorrectly(List <Token> tokens, string expectedResult)
        {
            var renderer = new HTMLRenderer();

            renderer.Render(tokens).Should().BeEquivalentTo(expectedResult);
        }