void IMarkupNodeVisitor.Visit(HeaderMarkupNode node) { writer.BeginTag("header"); writer.WriteAttribute("title", node.Title); writer.WriteAttribute("level", node.Level.ToString()); foreach (var child in node.Children) { child.Accept(this); } writer.EndTag(); }
void IMarkupNodeVisitor.Visit(HeaderMarkupNode node) { if (styleManager.IsSectionable(node.Level + 1)) { using (NestedContainer(HtmlTags.Div) .Attribute(HtmlAttributes.Class, styleManager.GetSectionClass(node.Level + 1))) { ProcessHeader(node); } } else { ProcessHeader(node); } }
void IMarkupNodeVisitor.Visit(HeaderMarkupNode node) { for (var i = 0; i <= node.Level; i++) { writer.Append('='); } writer.Append(node.Title); for (var i = 0; i <= node.Level; i++) { writer.Append('='); } writer.AppendLine(); foreach (var child in node.Children) { child.Accept(this); } }
private void ProcessHeader(HeaderMarkupNode node) { container.AddElement(string.Format(HtmlTags.HeaderFormat, node.Level)).Add(node.Title); ProcessCompositeNode(node); }