1using System.Threading.Tasks;
12 private readonly
bool numberExplicit;
34 internal set => this.number = value;
74 x.number == this.number &&
75 x.numberExplicit == this.numberExplicit &&
84 public override bool Equals(
object obj)
87 this.number == x.number &&
88 this.numberExplicit == x.numberExplicit &&
98 int h1 = base.GetHashCode();
99 int h2 = this.number.GetHashCode();
100 int h3 = this.numberExplicit.GetHashCode();
102 h1 = ((h1 << 5) + h1) ^ h2;
103 h1 = ((h1 << 5) + h1) ^ h3;
Contains a markdown document. This markdown document class supports original markdown,...
Contains some basic statistical information about a Markdown document.
int NrNumberedItems
Number of numbered items.
int NrListItems
Number of list items (total).
Abstract base class for block elements with one child.
Represents a numbered item in an ordered list.
override bool InlineSpanElement
If the element is an inline span element.
override MarkdownElementSingleChild Create(MarkdownElement Child, MarkdownDocument Document)
Creates an object of the same type, and meta-data, as the current object, but with content defined by...
bool NumberExplicit
If number is explicitly provided (true) or inferred (false).
override void IncrementStatistics(MarkdownStatistics Statistics)
Increments the property or properties in Statistics corresponding to the element.
override bool Equals(object obj)
Determines whether the specified object is equal to the current object.
int Number
Number associated with item.
override bool SameMetaData(MarkdownElement E)
If the current object has same meta-data as E (but not necessarily same content).
NumberedItem(MarkdownDocument Document, int Number, bool NumberExplicit, MarkdownElement Child)
Represents a numbered item in an ordered list.
override int GetHashCode()
Serves as the default hash function.
override Task Render(IRenderer Output)
Renders the element.
Abstract base class for all markdown elements.
abstract bool InlineSpanElement
If the element is an inline span element.
MarkdownDocument Document
Markdown document.
Abstract base class for all markdown elements with one child element.
MarkdownElement Child
Child element.
Interface for Markdown renderers.