Skip to content

Commit 4e751f6

Browse files
committed
Bump up project version, update deps and add support for net9.0
1 parent 762e9c5 commit 4e751f6

File tree

6 files changed

+24
-32
lines changed

6 files changed

+24
-32
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
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

.github/workflows/nuget-publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ If you have used and benefitted from this library. Please feel free to buy me a
1919
Install 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
2424
var converter = new ReverseMarkdown.Converter();
2525

2626
string html = "This a sample <strong>paragraph</strong> from <a href=\"http://test.com\">my site</a>";
2727

2828
string 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

3333
Will result in:
@@ -43,7 +43,7 @@ This a sample **paragraph** from [my site](http://test.com)
4343
The conversion can be customized:
4444

4545
<!-- snippet: UsageWithConfig -->
46-
<a id='snippet-usagewithconfig'></a>
46+
<a id='snippet-UsageWithConfig'></a>
4747
```cs
4848
var config = new ReverseMarkdown.Config
4949
{
@@ -59,7 +59,7 @@ var config = new ReverseMarkdown.Config
5959

6060
var 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

README.source.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ If you have used and benefitted from this library. Please feel free to buy me a
1212
Install 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
1717
var converter = new ReverseMarkdown.Converter();
1818

1919
string html = "This a sample <strong>paragraph</strong> from <a href=\"http://test.com\">my site</a>";
2020

2121
string 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

2626
Will result in:
@@ -36,7 +36,7 @@ This a sample **paragraph** from [my site](http://test.com)
3636
The conversion can also be customized:
3737

3838
<!-- snippet: UsageWithConfig -->
39-
<a id='snippet-usagewithconfig'></a>
39+
<a id='snippet-UsageWithConfig'></a>
4040
```cs
4141
var config = new ReverseMarkdown.Config
4242
{
@@ -52,7 +52,7 @@ var config = new ReverseMarkdown.Config
5252

5353
var 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

src/ReverseMarkdown.Test/ReverseMarkdown.Test.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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>
@@ -9,13 +9,13 @@
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">

src/ReverseMarkdown/ReverseMarkdown.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
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>

0 commit comments

Comments
 (0)