Esempio n. 1
0
        public void Export_ReturnCorrectHtml_OnItalicElement()
        {
            const string text   = "bar";
            var          italic = new MarkdownItalicElement(LexemeDefinitions.Italic.Representation);

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

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

            html.Should().Be($"<em>{text}</em>");
        }
Esempio n. 2
0
 public string TransformItalic(MarkdownItalicElement element)
 {
     return(TransformBlock(element, "em"));
 }