Skip to content

Commit

Permalink
feat: 优化 HTML 实体的匹配。
Browse files Browse the repository at this point in the history
  • Loading branch information
CYJB committed Jan 24, 2024
1 parent 15b52f6 commit dd36e0e
Show file tree
Hide file tree
Showing 9 changed files with 21,889 additions and 2,185 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ insert_final_newline = true
[*.cs]
# IDE0180: 使用元组交换值
csharp_style_prefer_tuple_swap = false

# IDE0057: 使用范围运算符
dotnet_diagnostic.IDE0057.severity = none
6 changes: 6 additions & 0 deletions Cyjb.Markdown.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestMarkdown", "TestMarkdow
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Example", "Example\Example.csproj", "{22A2C989-8111-4121-B802-1F1392796813}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Generator", "Generator\Generator.csproj", "{93ED82BE-FEC7-4AF3-9B55-C8CEDA257CE8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -27,6 +29,10 @@ Global
{22A2C989-8111-4121-B802-1F1392796813}.Debug|Any CPU.Build.0 = Debug|Any CPU
{22A2C989-8111-4121-B802-1F1392796813}.Release|Any CPU.ActiveCfg = Release|Any CPU
{22A2C989-8111-4121-B802-1F1392796813}.Release|Any CPU.Build.0 = Release|Any CPU
{93ED82BE-FEC7-4AF3-9B55-C8CEDA257CE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{93ED82BE-FEC7-4AF3-9B55-C8CEDA257CE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{93ED82BE-FEC7-4AF3-9B55-C8CEDA257CE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{93ED82BE-FEC7-4AF3-9B55-C8CEDA257CE8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
6 changes: 1 addition & 5 deletions Cyjb.Markdown/Cyjb.Markdown.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,14 @@
<AssemblyOriginatorKeyFile>../CYJB_Code_Key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
<Compile Remove="Parse\ParseUtil.Emoji.cs" />
</ItemGroup>

<ItemGroup>
<None Include="..\.editorconfig" Link=".editorconfig" />
<None Include="..\README.md" Pack="True" PackagePath="" />
<None Include="LICENSE.txt" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cyjb" Version="1.0.17">
<PackageReference Include="Cyjb" Version="1.0.19">
<GeneratePathProperty>True</GeneratePathProperty>
</PackageReference>
<PackageReference Include="Cyjb.Compilers.Design" Version="1.0.16">
Expand Down
2 changes: 1 addition & 1 deletion Cyjb.Markdown/ParseInline/InlineLexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public string GetLiteralText()
{
return string.Empty;
}
ReadOnlySpan<char> span = literalBuffer.AsSpan();
Span<char> span = literalBuffer.AsSpan();
string result = span.Unescape();
literalBuffer.Clear();
return result;
Expand Down
Loading

0 comments on commit dd36e0e

Please sign in to comment.