Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Emphasize.cs
1using System.Collections.Generic;
2using System.Threading.Tasks;
4
6{
11 {
17 public Emphasize(MarkdownDocument Document, IEnumerable<MarkdownElement> ChildElements)
18 : base(Document, ChildElements)
19 {
20 }
21
26 public override Task Render(IRenderer Output) => Output.Render(this);
27
31 public override bool InlineSpanElement => true;
32
40 public override MarkdownElementChildren Create(IEnumerable<MarkdownElement> Children, MarkdownDocument Document)
41 {
42 return new Emphasize(Document, Children);
43 }
44
49 public override void IncrementStatistics(MarkdownStatistics Statistics)
50 {
51 Statistics.NrEmphasize++;
52 }
53 }
54}
Contains a markdown document. This markdown document class supports original markdown,...
Contains some basic statistical information about a Markdown document.
Abstract base class for all markdown elements with a variable number of child elements.
override IEnumerable< MarkdownElement > Children
Any children of the element.
MarkdownDocument Document
Markdown document.
override Task Render(IRenderer Output)
Renders the element.
Emphasize(MarkdownDocument Document, IEnumerable< MarkdownElement > ChildElements)
Emphasized text
Definition: Emphasize.cs:17
override bool InlineSpanElement
If the element is an inline span element.
Definition: Emphasize.cs:31
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...
Definition: Emphasize.cs:40
override void IncrementStatistics(MarkdownStatistics Statistics)
Increments the property or properties in Statistics corresponding to the element.
Definition: Emphasize.cs:49
Interface for Markdown renderers.
Definition: IRenderer.cs:12