protected virtual void AppendAttributesDeclaration(CodeStringBuilder csb) { AppendMode oldMode = csb.Mode; csb.Mode = AppendMode.NonText; foreach (AttributeDetail ad in FilterChildren <AttributeDetail>()) { if (ad.AppendInCode) { csb.AppendText("["); csb.AppendRaw(html: ad.GetHtmlDeclaration(), markdown: ad.GetMarkdownDeclaration()); csb.AppendText("]"); csb.AppendNewline(); } } csb.Mode = oldMode; }