1using System.Collections.Generic;
2using System.Threading.Tasks;
12 private readonly
string label;
29 public string Label => this.label;
69 x.label == this.label &&
78 public override bool Equals(
object obj)
81 this.label == x.label &&
91 int h1 = base.GetHashCode();
92 int h2 = this.label?.GetHashCode() ?? 0;
94 h1 = ((h1 << 5) + h1) ^ h2;
109 if (Statistics.IntUrlHyperlinks is
null)
110 Statistics.IntUrlHyperlinks =
new List<string>();
114 if (!Statistics.IntUrlHyperlinks.Contains(Url))
115 Statistics.IntUrlHyperlinks.Add(Url);
Contains a markdown document. This markdown document class supports original markdown,...
Multimedia GetReference(string Label)
Gets the multimedia information referenced by a label.
Contains some basic statistical information about a Markdown document.
int NrUrlHyperLinks
Number of URL hyperlinks.
int NrHyperLinks
Number of hyperlinks (total).
Abstract base class for all markdown elements with a variable number of child elements.
override IEnumerable< MarkdownElement > Children
Any children of the element.
Abstract base class for all markdown elements.
MarkdownDocument Document
Markdown document.
override void IncrementStatistics(MarkdownStatistics Statistics)
Increments the property or properties in Statistics corresponding to the element.
LinkReference(MarkdownDocument Document, IEnumerable< MarkdownElement > ChildElements, string Label)
Link reference
override Task Render(IRenderer Output)
Renders the element.
override bool Equals(object obj)
Determines whether the specified object is equal to the current object.
override string ToString()
override MarkdownElementChildren Create(IEnumerable< MarkdownElement > Children, MarkdownDocument Document)
Creates an object of the same type, and meta-data, as the current object, but with content defined by...
override bool InlineSpanElement
If the element is an inline span element.
override bool SameMetaData(MarkdownElement E)
If the current object has same meta-data as E (but not necessarily same content).
override int GetHashCode()
Serves as the default hash function.
MultimediaItem[] Items
Multimedia items.
Interface for Markdown renderers.