public override void VisitInlineCode(InlineCodeComment comment, CommentRendererContext context) { if (!string.IsNullOrWhiteSpace(comment.Code)) { var code = comment.Code; code = code.Replace("{", "{{").Replace("}", "}}"); code = code.UnintendCode(); context.Builder.AppendRaw("<code>"); context.Builder.AppendEncoded(code); context.Builder.AppendRaw("</code>"); } }
public override void VisitInlineCode(InlineCodeComment comment, StringBuilder context) { context.Append("<c>"); context.Append(comment.Code); context.Append("</c>"); }
public override void VisitInlineCode(InlineCodeComment comment, CommentRendererContext context) { context.Writer.RenderBeginTag(HtmlTextWriterTag.I); context.Writer.Write(comment.Code); context.Writer.RenderEndTag(); }
/// <summary> /// Visits a <c>inlinecode</c> comment. /// </summary> /// <param name="comment">The comment.</param> /// <param name="context">The context.</param> public virtual void VisitInlineCode(InlineCodeComment comment, TContext context) { }