protected override void Write(SpeeDataRenderer renderer, HeadingBlock headingBlock) { renderer.WriteStartParagraph(); renderer.WriteStartElement("Fontface"); renderer.WriteAttribute("fontfamily", headingBlock.Level <= 1 ? "head1" : "head2"); renderer.WriteStartElement("B"); renderer.WriteItems(headingBlock); renderer.WriteEndElement(); renderer.WriteEndElement(); renderer.WriteEndParagraph(); }
} // proc WriteSpan protected override void Write(SpeeDataRenderer renderer, EmphasisInline span) { if (WriteSpan(renderer, span)) { renderer.WriteItems(span); renderer.WriteEndElement(); } else { renderer.WriteChildren(span); } } // proc Write
protected override void Write(SpeeDataRenderer renderer, ListBlock listBlock) { if (listBlock.IsOrdered) { renderer.WriteStartElement("OL"); //if (listBlock.OrderedStart != null && (listBlock.DefaultOrderedStart != listBlock.OrderedStart)) // renderer.WriteMember(List.StartIndexProperty, listBlock.OrderedStart); } else { renderer.WriteStartElement("UL"); } foreach (var cur in listBlock) { renderer.WriteStartElement("LI"); renderer.WriteItems((ContainerBlock)cur); renderer.WriteEndElement(); } renderer.WriteEndElement(); }
protected override void Write(SpeeDataRenderer renderer, ThematicBreakBlock obj) { renderer.WriteStartElement("Paragraph"); renderer.WriteEndElement(); }
protected override void Write(SpeeDataRenderer renderer, CodeInline code) { renderer.WriteStartElement("Span"); renderer.WriteText(code.Content); renderer.WriteEndElement(); }