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.

Markdown Input

444 / 5000 characters

Rendered HTML

22:46:05
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);
InputOutput
MarkdownHTML
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);
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.