SCS.MDScribe
1.0.0
dotnet add package SCS.MDScribe --version 1.0.0
NuGet\Install-Package SCS.MDScribe -Version 1.0.0
<PackageReference Include="SCS.MDScribe" Version="1.0.0" />
<PackageVersion Include="SCS.MDScribe" Version="1.0.0" />
<PackageReference Include="SCS.MDScribe" />
paket add SCS.MDScribe --version 1.0.0
#r "nuget: SCS.MDScribe, 1.0.0"
#:package SCS.MDScribe@1.0.0
#addin nuget:?package=SCS.MDScribe&version=1.0.0
#tool nuget:?package=SCS.MDScribe&version=1.0.0
SCS.MDScribe by Sweet Corn Software
SCS.MDScribe is a fluent, developer‑friendly Markdown builder for .NET.
It makes it easy to generate structured Markdown documents using a clean, chainable API instead of string concatenation.
Designed for C#, Blazor, ASP.NET, API output, tools, documentation generators, and any workflow where you need clean Markdown output.
Features
- Fluent Markdown building API
- Automatic header cleanup (no newline issues)
- Paragraphs, inline formatting, links, images
- Bullet, numbered, and task lists
- Code blocks with optional language hinting
- Tables with headers and rows
- Blockquotes, horizontal rules, raw text support
- Zero external dependencies
- Output is plain Markdown text
Installation
You can install MDScribe via NuGet: https://www.nuget.org/packages/SCS.MDScribe
dotnet add package SCS.MDScribe
Quick Example
var md = new MDScribeBuilder()
.H1("My Document")
.Paragraph("Generated using MDScribe.")
.H2("Features")
.BulletList(new [] { "Simple", "Fast", "Fluent" })
.CodeBlock("Console.WriteLine(\"Hello\");", "csharp")
.ToString();
File.WriteAllText("output.md", md);
Why MDScribe?
- Cleaner than manual string templates
- More predictable than regex‑based generators
- Perfect for dynamic content generation (reports, exports, blog tooling, AI output formatting, CMS pipelines)
- Small, fast, and dependency‑free
API Overview
Headers
.H1("Title")
.H2("Section")
.H3("Subsection")
Headings With Anchors
.H2WithAnchor("API Reference", "api-ref")
Text Blocks
.Paragraph("Text")
.BlockQuote("Quote text")
.HorizontalRule()
Inline Formatting
.Bold("text")
.Italic("text")
.Strike("text")
.InlineCode("value")
Highlight Text
.Paragraph("This is ").Highlight("important").AppendLine(".")
Emoji
.Paragraph("Build successful ").Emoji("sparkles")
Lists
.BulletList(new[] { "A", "B" })
.NumberList(new[] { "Step 1", "Step 2" })
.TaskList(new [] { ("Do work", false), ("Ship", true) })
.DefinitionList("API", "Application Programming Interface")
Code Blocks
.CodeBlock("Console.WriteLine(\"Hello\");", "csharp")
Tables
.Table(
new[] { "Name", "Value" },
new[] {
new[] { "CPU", "Intel" },
new[] { "RAM", "16GB" }
}
)
Table With Alignment
.TableWithAlignment(
new[] { "Name", "Score", "Status" },
new[] { "left", "center", "right" },
new[]
{
new[] { "Alice", "92", "Pass" },
new[] { "Bob", "76", "Pass" },
new[] { "Charlie", "48", "Fail" }
}
)
Footnotes
.Paragraph("This is text with a footnote")
.FootnoteReference("1")
.FootnoteDefinition("1", "This is the footnote.")
Math Blocks
.MathBlock(@"x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}")
Collapsible Sections
.Collapsible("Show Details", "Here are more details inside a collapsible section.")
Callouts
.Note("This method is experimental.")
.Tip("Use MDScribe to generate clean markdown.")
.Warning("Do not forget to escape user input.")
License
MIT License.
You are free to use, modify, and distribute MDScribe.
Credits
MDScribe is developed by WebLuke of Sweet Corn Software.
Assisted by T3 Chat (GPT‑5.1 Instant).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- 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.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 234 | 11/14/2025 |