MdParser 1.0.2
dotnet add package MdParser --version 1.0.2
NuGet\Install-Package MdParser -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MdParser" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MdParser" Version="1.0.2" />
<PackageReference Include="MdParser" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MdParser --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MdParser, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MdParser@1.0.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MdParser&version=1.0.2
#tool nuget:?package=MdParser&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MD parser
A simple MD file format parsing tool.
Make your own converters of MarkDown files.
Usage
Just include MdParser namespace and Load, Parse and Save via Container class.
Here is example.
using MdParser;
var parser = new MdParser.Container();
parser.Load(path_to_a_file);
parser.Parse(false); // true if not wanted to be strict
parser.Save(OutputType.TextFile, "output_path_file.txt"); // according to exported type
Support
MD components
- Text rows
- List (non-numeric) items
- Headlines/Headers - up to level 3
Output formats
- SimpleText - txt file with text representation of MD file
Testing and examples
- Added testing project to demonstrate usage
See simple convertion of MD file to txt.
string TEST_RSC_1 = "../../TestResources/CHANGELOG.md";
try
{
// create instance
var parser = new MdParser.Container();
// load MD file
parser.Load(TEST_RSC_1);
// process it
parser.Parse(false);
// save it to desired format
parser.Save(OutputType.TextFile, "./Output/changelog.txt");
}
catch (Exception exc) {
throw exc;
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.