1using System.Threading.Tasks;
13 private readonly
int level;
14 private readonly
string delimiter;
37 this.delimiter =
Level == 1 ?
":" :
new string(
':',
Level);
64 return this.delimiter + this.emoji.ShortName + this.delimiter;
82 public override bool Equals(
object obj)
85 this.emoji.ShortName == x.emoji.ShortName &&
86 this.level == x.level &&
87 this.delimiter == x.delimiter &&
97 int h1 = base.GetHashCode();
98 int h2 = this.emoji.ShortName.GetHashCode();
100 h1 = ((h1 << 5) + h1) ^ h2;
101 h2 = this.level.GetHashCode();
103 h1 = ((h1 << 5) + h1) ^ h2;
104 h2 = this.delimiter.GetHashCode();
106 h1 = ((h1 << 5) + h1) ^ h2;
Contains information about an emoji.
Contains a markdown document. This markdown document class supports original markdown,...
Contains some basic statistical information about a Markdown document.
int NrEmojiReference
Number of emoji references.
Abstract base class for all markdown elements.
MarkdownDocument Document
Markdown document.
EmojiReference(MarkdownDocument Document, EmojiInfo Emoji, int Level)
Represents an Emoji.
override Task Render(IRenderer Output)
Renders the element.
string Delimiter
Delimiter string used to identify emoji.
override void IncrementStatistics(MarkdownStatistics Statistics)
Increments the property or properties in Statistics corresponding to the element.
override bool OutsideParagraph
If element, parsed as a span element, can stand outside of a paragraph if alone in it.
override bool Equals(object obj)
Determines whether the specified object is equal to the current object.
override int GetHashCode()
Serves as the default hash function.
EmojiReference(MarkdownDocument Document, EmojiInfo Emoji)
Represents an Emoji.
int Level
Level (number of colons used to define the emoji)
override string ToString()
override bool InlineSpanElement
If the element is an inline span element.
EmojiInfo Emoji
Emoji information.
Interface for Markdown renderers.