49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
namespace ZelWiki.Engine.Library
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class Constants
|
|
{
|
|
public const string SoftBreak = "<!--SoftBreak-->";
|
|
public const string HardBreak = "<!--HardBreak-->";
|
|
|
|
public enum WikiMatchType
|
|
{
|
|
ScopeFunction,
|
|
Emoji,
|
|
Instruction,
|
|
Comment,
|
|
Variable,
|
|
Markup,
|
|
Error,
|
|
StandardFunction,
|
|
Link,
|
|
Heading,
|
|
Literal
|
|
}
|
|
|
|
public enum HandlerResultInstruction
|
|
{
|
|
/// <summary>
|
|
/// 不处理匹配,允许它由另一个处理程序处理
|
|
/// </summary>
|
|
Skip,
|
|
|
|
/// <summary>
|
|
/// 删除匹配后的任何单个尾随换行符
|
|
/// </summary>
|
|
TruncateTrailingLine,
|
|
|
|
/// <summary>
|
|
/// 将不会继续处理此块中的内容
|
|
/// </summary>
|
|
DisallowNestedProcessing,
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
OnlyReplaceFirstMatch
|
|
}
|
|
}
|
|
} |