コード例 #1
0
        private IDocumentElement Paragraph(Block block)
        {
            var paragraphString = "";

            if (block.InlineContent != null)
            {
                paragraphString = LiteralContentSerializer.FlattenLiteralContent(block.InlineContent);
            }

            return(new Paragraph(paragraphString));
        }
コード例 #2
0
 private IDocumentElement AtxHeading(Block block)
 {
     return(new Heading(LiteralContentSerializer
                        .FlattenLiteralContent(block.InlineContent), block.Heading.Level));
 }