Portfolio
Beskar.Markdown
Markdown to HTML, measured while it renders.
Write up to 5000 characters, render it with Beskar.Markdown, and inspect the generated HTML preview with render cost shown next to it.
Time
0.056 ms
Output
670 B
Build notes
Beskar.Markdown turns Markdown into HTML with a tiny API:
- headings become structured content
- lists stay readable
- code blocks keep their language class
- tables are rendered without extra client work
var html = BeMarkdown.ToHtml(markdown);
| Input | Output |
|---|
| Markdown | HTML |
| Code fences | <pre><code> |
Useful when a site needs Markdown articles without a heavy rendering pipeline.
Get it from NuGet
Install the package, import the namespace, and call BeMarkdown.ToHtml
dotnet add package Beskar.Markdown
<PackageReference Include="Beskar.Markdown" />
Open NuGet package
Usage
Simple C# integration
C#
using Beskar.Markdown;
var markdown = """
## Hello Beskar
Markdown in, HTML out.
""";
var html = BeMarkdown.ToHtml(markdown);