private IDocumentElement Paragraph(Block block) { var paragraphString = ""; if (block.InlineContent != null) { paragraphString = LiteralContentSerializer.FlattenLiteralContent(block.InlineContent); } return(new Paragraph(paragraphString)); }
private IDocumentElement AtxHeading(Block block) { return(new Heading(LiteralContentSerializer .FlattenLiteralContent(block.InlineContent), block.Heading.Level)); }