我滴个乖乖

This commit is contained in:
zel
2025-02-20 15:20:28 +08:00
parent 4b54cca70b
commit 485cfcd6f2
2343 changed files with 495732 additions and 1022 deletions

View File

@@ -0,0 +1,44 @@
namespace ZelWiki.Engine.Library
{
public class Constants
{
public const string SoftBreak = "<!--SoftBreak-->"; //These will remain as \r\n in the final HTML.
public const string HardBreak = "<!--HardBreak-->"; //These will remain as <br /> in the final HTML.
public enum WikiMatchType
{
ScopeFunction,
Emoji,
Instruction,
Comment,
Variable,
Markup,
Error,
StandardFunction,
Link,
Heading,
Literal
}
public enum HandlerResultInstruction
{
/// <summary>
/// Does not process the match, allowing it to be processed by another handler.
/// </summary>
Skip,
/// <summary>
/// Removes any single trailing newline after match.
/// </summary>
TruncateTrailingLine,
/// <summary>
/// Will not continue to process content in this block.
/// </summary>
DisallowNestedProcessing,
/// <summary>
/// As opposed to the default functionality of replacing all matches, this will cause ony the first match to be replaced.
/// This also means that each match will be processed individually, which can impact performance.
/// </summary>
OnlyReplaceFirstMatch
}
}
}