/// <summary>
 /// Visits the monospace.
 /// </summary>
 /// <param name="monospace">The monospace.</param>
 public virtual void VisitMonospace(Monospace monospace)
 {
     if (monospace == null)
     {
         return;
     }
     _writer.Write(monospace.DoubleDelimited ? "``" : "`");
     VisitInlineContainer(monospace);
     _writer.Write(monospace.DoubleDelimited ? "``" : "`");
 }
Exemple #2
0
        public virtual void Visit(Monospace monospace)
        {
            if (monospace == null)
            {
                return;
            }

            _writer.Write("<code>");
            Visit((InlineContainer)monospace);
            _writer.Write("</code>");
        }
Exemple #3
0
 /// <summary>
 /// Visits the monospace.
 /// </summary>
 /// <param name="monospace">The monospace.</param>
 public virtual void VisitMonospace(Monospace monospace)
 {
 }
Exemple #4
0
 protected bool Equals(Monospace other)
 {
     return(DoubleDelimited == other.DoubleDelimited &&
            Attributes.Equals(other.Attributes) &&
            Elements.SequenceEqual(other.Elements));
 }