-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathBlockTag.cs
More file actions
96 lines (80 loc) · 2.85 KB
/
BlockTag.cs
File metadata and controls
96 lines (80 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
using System;
namespace CommonMark.Syntax
{
/// <summary>
/// Specifies the element type of a <see cref="Block"/> instance.
/// </summary>
public enum BlockTag : byte
{
/// <summary>
/// The root element that represents the document itself. There should only be one in the tree.
/// </summary>
Document,
/// <summary>
/// A block-quote element.
/// </summary>
BlockQuote,
/// <summary>
/// A list element. Will contain nested blocks with type of <see cref="BlockTag.ListItem"/>.
/// </summary>
List,
/// <summary>
/// An item in a block element of type <see cref="BlockTag.List"/>.
/// </summary>
ListItem,
/// <summary>
/// A code block element that was formatted with fences (for example, <c>~~~\nfoo\n~~~</c>).
/// </summary>
FencedCode,
/// <summary>
/// A code block element that was formatted by indenting the lines with at least 4 spaces.
/// </summary>
IndentedCode,
/// <summary>
/// A raw HTML code block element.
/// </summary>
HtmlBlock,
/// <summary>
/// A paragraph block element.
/// </summary>
Paragraph,
/// <summary>
/// A heading element that was parsed from an ATX style markup (<c>## heading 2</c>).
/// </summary>
AtxHeading,
/// <summary>
/// Obsolete. Use <see cref="AtxHeading"/> instead.
/// </summary>
[Obsolete("Use " + nameof(AtxHeading) + " instead.")]
AtxHeader = AtxHeading,
/// <summary>
/// A heading element that was parsed from a Setext style markup (<c>heading\n========</c>).
/// </summary>
SetextHeading,
/// <summary>
/// Obsolete. Use <see cref="SetextHeading"/> instead.
/// </summary>
[Obsolete("Use " + nameof(SetextHeading) + " instead.")]
SETextHeader = SetextHeading,
/// <summary>
/// A thematic break element.
/// </summary>
ThematicBreak,
/// <summary>
/// Obsolete. Use <see cref="ThematicBreak"/> instead.
/// </summary>
[Obsolete("Use " + nameof(ThematicBreak) + " instead.")]
HorizontalRuler = ThematicBreak,
/// <summary>
/// A text block that contains only link reference definitions.
/// </summary>
ReferenceDefinition,
/// <summary>
/// A YAML metadta block (for example, <c>---\nyaml: metadata\n...</c>).
/// Only present if <see cref="CommonMarkAdditionalFeatures.YamlBlocks"/> or
/// <see cref="CommonMarkAdditionalFeatures.YamlFrontMatterOnly"/> are enabled
/// The block is structured like a <see cref="FencedCode"/> block.
/// </summary>
YamlBlock
}
}