File tree Expand file tree Collapse file tree 6 files changed +24
-32
lines changed Expand file tree Collapse file tree 6 files changed +24
-32
lines changed Original file line number Diff line number Diff line change 1616 strategy :
1717 matrix :
1818 include :
19- - os : ubuntu-20.04
19+ - os : ubuntu-latest
2020 artifact-name : Linux
2121 # - os: macos-11
2222 # artifact-name: Darwin
@@ -27,20 +27,12 @@ jobs:
2727 steps :
2828 - name : checkout repo
2929 uses : actions/checkout@v4
30- - name : Install .NET 6 .0.x
31- uses : actions/setup-dotnet@v3
30+ - name : Install .NET 9 .0.x
31+ uses : actions/setup-dotnet@v4
3232 with :
33- dotnet-version : 6.0.x
34- - name : Install .NET 7.0.x
35- uses : actions/setup-dotnet@v3
36- with :
37- dotnet-version : 7.0.x
38- - name : Install .NET 8.0.x
39- uses : actions/setup-dotnet@v3
40- with :
41- dotnet-version : 8.0.x
33+ dotnet-version : 9.0.x
4234 - name : Display dotnet info
4335 run : dotnet --list-sdks
4436 - name : Run tests
45- run : dotnet test src/ReverseMarkdown.Test/ReverseMarkdown.Test.csproj --framework net8 .0
37+ run : dotnet test src/ReverseMarkdown.Test/ReverseMarkdown.Test.csproj --framework net9 .0
4638
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ jobs:
1515 - name : Checkout code
1616 uses : actions/checkout@v4
1717
18- - name : Install .NET 8 .0.x
19- uses : actions/setup-dotnet@v3
18+ - name : Install .NET 9 .0.x
19+ uses : actions/setup-dotnet@v4
2020 with :
21- dotnet-version : 8 .0.x
21+ dotnet-version : 9 .0.x
2222
2323 - name : Run Pack
2424 run : dotnet pack src/ReverseMarkdown/ReverseMarkdown.csproj -c Release
Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ If you have used and benefitted from this library. Please feel free to buy me a
1919Install the package from NuGet using ` Install-Package ReverseMarkdown ` or clone the repository and built it yourself.
2020
2121<!-- snippet: Usage -->
22- <a id =' snippet-usage ' ></a >
22+ <a id =' snippet-Usage ' ></a >
2323``` cs
2424var converter = new ReverseMarkdown .Converter ();
2525
2626string html = " This a sample <strong>paragraph</strong> from <a href=\" http://test.com\" >my site</a>" ;
2727
2828string result = converter .Convert (html );
2929```
30- <sup ><a href =' /src/ReverseMarkdown.Test/Snippets.cs#L11-L19 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-usage ' title =' Start of snippet ' >anchor</a ></sup >
30+ <sup ><a href =' /src/ReverseMarkdown.Test/Snippets.cs#L11-L19 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-Usage ' title =' Start of snippet ' >anchor</a ></sup >
3131<!-- endSnippet -->
3232
3333Will result in:
@@ -43,7 +43,7 @@ This a sample **paragraph** from [my site](http://test.com)
4343The conversion can be customized:
4444
4545<!-- snippet: UsageWithConfig -->
46- <a id =' snippet-usagewithconfig ' ></a >
46+ <a id =' snippet-UsageWithConfig ' ></a >
4747``` cs
4848var config = new ReverseMarkdown .Config
4949{
@@ -59,7 +59,7 @@ var config = new ReverseMarkdown.Config
5959
6060var converter = new ReverseMarkdown .Converter (config );
6161```
62- <sup ><a href =' /src/ReverseMarkdown.Test/Snippets.cs#L27-L43 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-usagewithconfig ' title =' Start of snippet ' >anchor</a ></sup >
62+ <sup ><a href =' /src/ReverseMarkdown.Test/Snippets.cs#L27-L43 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-UsageWithConfig ' title =' Start of snippet ' >anchor</a ></sup >
6363<!-- endSnippet -->
6464
6565## Configuration options
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ If you have used and benefitted from this library. Please feel free to buy me a
1212Install the package from NuGet using ` Install-Package ReverseMarkdown ` or clone the repository and build it yourself.
1313
1414<!-- snippet: Usage -->
15- <a id =' snippet-usage ' ></a >
15+ <a id =' snippet-Usage ' ></a >
1616``` cs
1717var converter = new ReverseMarkdown .Converter ();
1818
1919string html = " This a sample <strong>paragraph</strong> from <a href=\" http://test.com\" >my site</a>" ;
2020
2121string result = converter .Convert (html );
2222```
23- <sup ><a href =' /src/ReverseMarkdown.Test/Snippets.cs#L11-L19 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-usage ' title =' Start of snippet ' >anchor</a ></sup >
23+ <sup ><a href =' /src/ReverseMarkdown.Test/Snippets.cs#L11-L19 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-Usage ' title =' Start of snippet ' >anchor</a ></sup >
2424<!-- endSnippet -->
2525
2626Will result in:
@@ -36,7 +36,7 @@ This a sample **paragraph** from [my site](http://test.com)
3636The conversion can also be customized:
3737
3838<!-- snippet: UsageWithConfig -->
39- <a id =' snippet-usagewithconfig ' ></a >
39+ <a id =' snippet-UsageWithConfig ' ></a >
4040``` cs
4141var config = new ReverseMarkdown .Config
4242{
@@ -52,7 +52,7 @@ var config = new ReverseMarkdown.Config
5252
5353var converter = new ReverseMarkdown .Converter (config );
5454```
55- <sup ><a href =' /src/ReverseMarkdown.Test/Snippets.cs#L27-L43 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-usagewithconfig ' title =' Start of snippet ' >anchor</a ></sup >
55+ <sup ><a href =' /src/ReverseMarkdown.Test/Snippets.cs#L27-L43 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-UsageWithConfig ' title =' Start of snippet ' >anchor</a ></sup >
5656<!-- endSnippet -->
5757
5858## Configuration options
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
3- <TargetFrameworks >net6.0;net7.0;net8.0</TargetFrameworks >
3+ <TargetFrameworks >net6.0;net7.0;net8.0;net9.0 </TargetFrameworks >
44 <IsTestProject >true</IsTestProject >
55 </PropertyGroup >
66 <ItemGroup >
99 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1010 <PrivateAssets >all</PrivateAssets >
1111 </PackageReference >
12- <PackageReference Include =" Verify.Xunit" Version =" 25.0.3 " />
13- <PackageReference Include =" xunit" Version =" 2.8.1 " />
14- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.8.1 " >
12+ <PackageReference Include =" Verify.Xunit" Version =" 30.1.0 " />
13+ <PackageReference Include =" xunit" Version =" 2.9.3 " />
14+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 3.1.0 " >
1515 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1616 <PrivateAssets >all</PrivateAssets >
1717 </PackageReference >
18- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.10 .0" />
18+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.14 .0" />
1919 </ItemGroup >
2020 <ItemGroup >
2121 <None Update =" ConverterTests.When_Span_with_newline_Should_Convert_Properly.verified.md" >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
33 <Description >ReverseMarkdown is a Html to Markdown converter library in c#</Description >
4- <VersionPrefix >4.6 .0</VersionPrefix >
4+ <VersionPrefix >4.7 .0</VersionPrefix >
55 <Authors >Babu Annamalai</Authors >
6- <TargetFrameworks >net46;netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks >
6+ <TargetFrameworks >net46;netstandard2.0;net6.0;net7.0;net8.0;net9.0 </TargetFrameworks >
77 <PackageProjectUrl >https://github.com/mysticmind/reversemarkdown-net</PackageProjectUrl >
88 <PackageLicenseExpression >MIT</PackageLicenseExpression >
99 <PackageTags >htmltomarkdown;html2markdown;converthtml;htmlconverter;html;converter;markdown</PackageTags >
1010 </PropertyGroup >
1111 <ItemGroup >
12- <PackageReference Include =" HtmlAgilityPack" Version =" 1.11.61 " />
12+ <PackageReference Include =" HtmlAgilityPack" Version =" 1.12.1 " />
1313 </ItemGroup >
1414 <!-- SourceLink specific settings-->
1515 <PropertyGroup >
You can’t perform that action at this time.
0 commit comments