This commit is contained in:
Zel
2025-02-23 18:47:21 +08:00
parent eaaffeeccb
commit e46a7ca31c
104 changed files with 2630 additions and 2516 deletions

View File

@@ -1,9 +1,12 @@
namespace ZelWiki.Engine.Library
{
/// <summary>
///
/// </summary>
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 const string SoftBreak = "<!--SoftBreak-->";
public const string HardBreak = "<!--HardBreak-->";
public enum WikiMatchType
{
@@ -23,22 +26,24 @@
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
}
}
}
}