protected override Block BuildDocumentInternal()
{
var section = new Section();
foreach (var element in children)
{
var inline = element as XInline;
section.Blocks.Add(inline != null
? new Paragraph(inline.BuildElement())
: ((XBlock) element).BuildDocument());
}
return section;
}