-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathCommonMarkAdditionalFeatures.cs
More file actions
46 lines (40 loc) · 1.59 KB
/
CommonMarkAdditionalFeatures.cs
File metadata and controls
46 lines (40 loc) · 1.59 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
using System;
namespace CommonMark
{
/// <summary>
/// Lists additional features that can be enabled in <see cref="CommonMarkSettings"/>.
/// These features are not part of the standard and should not be used if interoperability with other
/// CommonMark implementations is required.
/// </summary>
[Flags]
public enum CommonMarkAdditionalFeatures
{
/// <summary>
/// No additional features are enabled. This is the default.
/// </summary>
None = 0,
/// <summary>
/// The parser will recognize syntax <c>~~foo~~</c> that will be rendered as <c><del>foo</del></c>.
/// </summary>
StrikethroughTilde = 1,
/// <summary>
/// The parser will recognize syntax <c>[foo]</c>, which will be encoded in a separate AST node that the host application may evaluate as desired.
/// </summary>
PlaceholderBracket = 2,
/// <summary>
/// Allow YAML blocks (delimited by a line starting with exactly <c>---</c> and a line ending
/// with exactly <c>---</c> or <c>...</c>. YAML blocks will take precedence over a <c>---</c>
/// that might otherwise yield a thematic break.
/// </summary>
YamlBlocks = 4,
/// <summary>
/// Like <see cref="YamlBlocks"/> but will yield a maximum of one block, and only if the first
/// line is exactly <c>---</c>.
/// </summary>
YamlFrontMatterOnly = 8,
/// <summary>
/// All additional features are enabled.
/// </summary>
All = 0x7FFFFFFF
}
}