public string Comment(IComment comment) { if (comment.Data.StartsWith("?") && comment.Data.EndsWith("?")) { // This was probably a shortcode, so uncomment it return($"<{comment.Data}>"); } return(Formatter.Comment(comment)); }
/// <inheritdoc /> public string Comment(IComment comment) => _formatter.Comment(comment);
public override void ToHtml(TextWriter writer, IMarkupFormatter formatter) { writer.Write(formatter.Comment(this)); }
public string Comment(IComment comment) { return(defaultFormatter.Comment(comment)); }
public override void ToHtml(TextWriter writer, IMarkupFormatter formatter) { writer.Write(formatter.Comment(this)); }
/// <summary> /// Returns an HTML-code representation of the comment. /// </summary> /// <param name="formatter">The formatter to use.</param> /// <returns>A string containing the HTML code.</returns> public override String ToHtml(IMarkupFormatter formatter) { return formatter.Comment(this); }
/// <summary> /// Returns an HTML-code representation of the comment. /// </summary> /// <param name="formatter">The formatter to use.</param> /// <returns>A string containing the HTML code.</returns> public override String ToHtml(IMarkupFormatter formatter) { return(formatter.Comment(this)); }