添加项目文件。

This commit is contained in:
Zel
2025-01-22 23:31:03 +08:00
parent 1b8ba6771f
commit 2ae76476fb
894 changed files with 774558 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
namespace TightWiki.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
}
}
}