A simple Markdown parser and renderer for .NET
Table of Contents
![Product Name Screen Shot][product-screenshot]
CatMarkdown is a simple Markdown parser and renderer for .NET. It converts Markdown text into HTML, supporting various Markdown features such as headings, lists, blockquotes, code blocks, and inline formatting.
- .NET 9.0
To get a local copy up and running follow these simple steps.
- .NET 9.0 SDK
-
Clone the repo
git clone https://github.com/github_username/repo_name.git
-
Navigate to the project directory
cd repo_name
-
Restore dependencies
dotnet restore
To use the Markdown parser and renderer, create instances of MarkdownParser and HTMLRenderer and call their methods:
using CatMarkdown.src.Parsing;
using CatMarkdown.src.Rendering;
var parser = new MarkdownParser();
var renderer = new HTMLRenderer();
string markdown = "# Hello, World!";
string parsedContent = parser.Parse(markdown);
string html = renderer.Render(parsedContent);
Console.WriteLine(html);