Footers

edit

Footers adds the footer of a section, such as the author of a quote: lines that start with ^^, as a block quote does with >, are rendered as <footer>, with its paragraphs without <p>. A blank line ends it.

var options = new MarkdownParseOptions { Extensions = MarkdownExtensions.Footers };
var tree = MarkdownSyntaxTree.ParseText("> Simplicity is prerequisite for reliability.\n^^ Edsger W. Dijkstra\n", options);

Assert.IsType<MarkdownFooterSyntax>(tree.GetRoot().Blocks[1]);
Assert.Equal("<blockquote>\n<p>Simplicity is prerequisite for reliability.</p>\n</blockquote>\n<footer>Edsger W. Dijkstra</footer>\n", MarkdownHtmlRenderer.ToHtml(tree));

A footer is a MarkdownFooterSyntax, whose Blocks are its content.