Extras
MarkdownViewer
BitMarkdownViewer parses Markdown into an AST and renders it straight to the Blazor render tree - no JavaScript interop, no third-party packages. Composable pipelines add exactly the flavors a document needs, untrusted input is sanitized and bounded by default, and the parsed tree, the rendering of any node and the words the renderers write are all yours to change.
Rendering & interaction
Inline rendering, templates for code blocks, images and links, interactive task lists, localized strings, accessibility, and a live playground.
Inline
span without the paragraph wrappers, so a short piece of
Markdown can sit inside a sentence, a table cell or a label. Other blocks still render; a document
holding one keeps a div laid out inline.
Span<T> - read why (opens in a new tab)Templates
Every code block below is drawn by the template, not by the viewer:
var pipeline = new BitMarkdownPipelineBuilder().UseGitHubFlavored().Build();dotnet add package Bit.BlazorUI.ExtrasAnd every link, like the bit platform (opens in a new tab), is a BitLink.
Interactive task lists
Release checklist
- Write the parser
- Write the docs
- Polish
- Icons
- Copy
Localization
{0}.
Warnung
Der Titel dieses Kastens kommt aus den Texten der Pipeline, nicht aus dem Dokument.
Auch die Tabelle, die Fußnote1 und der externe Link (öffnet in neuem Tab) tragen deutsche Namen.
| Spalte | Wert |
|---|---|
| eins | 1 |
Fußnoten
Ihr Rücklink wird als „Zurück zur Referenz 1“ angesagt. ↩︎
Accessibility
# renders
as an h4 under the card's h3. AriaLabel names the document and makes it
a region. HeadingIdPrefix keeps its heading ids, and the links to them, apart from every other
comment's. Links are underlined and tell a screen reader when they open a new tab; code blocks and wide
tables are keyboard-scrollable; in-page links keep working under <base href>.
Playground
BitMarkdownViewer
A native Blazor Markdown viewer written in pure C# - no JavaScript,
no innerHTML, and no external dependencies zero external dependencies.
Feature highlights
- Bold, italic, bold italic, and
strikethrough - H2O, x2, inserted and highlighted (the emphasis extras)
- Links (opens in a new tab) and images
- Nested lists:
- First item
- Second item
- nested bullet
- Task lists:
- Parse blocks
- Conquer the world
Code
public static BitMarkdownDocumentNode Parse(string? markdown)
{
var document = new BitMarkdownDocumentNode();
return document;
}Tip
Switch the Flavor above to Basic and watch this become an ordinary block quote.
| Feature | Supported | Notes |
|---|---|---|
| Tables | Yes | With column alignment |
| Raw HTML | No | Escaped for safety |
Reference links keep the prose clean1: see the bit platform (opens in a new tab) site.
Emoji 🚀 🎉, bare URLs https://learn.microsoft.com (opens in a new tab) and © 2026.
Made with C# and the Blazor render tree.
Footnotes
The destination is declared once, at the bottom. ↩︎
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.
Comment by Sam
Looks good to me
Tested on Firefox and Safari. One nit, under Naming:
Naming
MaxLengthreads well, but the docs (opens in a new tab) should say it counts characters.