public void GetHtmlText_AfterMdWithDoubleUnderscore()
        {
            var translator = new Md2HtmlTranslator();
            var tokens     = new List <SingleToken>
            {
                new SingleToken(doubleUnderscore, 0, LocationType.Opening),
                new SingleToken(doubleUnderscore, 4, LocationType.Closing)
            };

            var paragraphs = new TokenValidator().GetParagraphsWithValidTokens(tokens, "__ff__");

            var htmlText = translator.TranslateMdToHtml("__ff__", paragraphs);

            htmlText.ShouldBeEquivalentTo("<p><strong>ff</strong></p>");
        }
        public void GetHtmlText_AfterMdWithNestedSingleUnderscore()
        {
            var translator = new Md2HtmlTranslator();
            var tokens     = new List <SingleToken>
            {
                new SingleToken(singleUnderscore, 0, LocationType.Opening),
                new SingleToken(singleUnderscore, 3, LocationType.Opening),
                new SingleToken(singleUnderscore, 5, LocationType.Closing),
                new SingleToken(singleUnderscore, 8, LocationType.Closing)
            };

            var paragraphs = new TokenValidator().GetParagraphsWithValidTokens(tokens, "_f _f_ f_");

            var htmlText = translator.TranslateMdToHtml("_f _f_ f_", paragraphs);

            htmlText.ShouldBeEquivalentTo("<p><em>f <em>f</em> f</em></p>");
        }