public void Export_ReturnCorrectHtml_OnBoldElement()
        {
            const string text   = "baz";
            var          italic = new MarkdownBoldElement(LexemeDefinitions.Bold.Representation);

            italic.ChildNodes.Add(new Text(text));

            var html = italic.Export(new HtmlExporter());

            html.Should().Be($"<strong>{text}</strong>");
        }
Exemple #2
0
 public string TransformBold(MarkdownBoldElement element)
 {
     return(TransformBlock(element, "strong"));
 }