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