Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 /// <inheritdoc />
 public string Comment(IComment comment) => _formatter.Comment(comment);
Esempio n. 3
0
 public override void ToHtml(TextWriter writer, IMarkupFormatter formatter)
 {
     writer.Write(formatter.Comment(this));
 }
Esempio n. 4
0
 public string Comment(IComment comment)
 {
     return(defaultFormatter.Comment(comment));
 }
Esempio n. 5
0
 public override void ToHtml(TextWriter writer, IMarkupFormatter formatter)
 {
     writer.Write(formatter.Comment(this));
 }
Esempio n. 6
0
 /// <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);
 }
Esempio n. 7
0
 /// <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));
 }