SCS.MDScribe 1.0.0

dotnet add package SCS.MDScribe --version 1.0.0
                    
NuGet\Install-Package SCS.MDScribe -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SCS.MDScribe" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SCS.MDScribe" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SCS.MDScribe" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SCS.MDScribe --version 1.0.0
                    
#r "nuget: SCS.MDScribe, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SCS.MDScribe@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SCS.MDScribe&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SCS.MDScribe&version=1.0.0
                    
Install as a Cake Tool

SCS.MDScribe by Sweet Corn Software

GitHub Repo GitHub Issues NuGet NuGet Downloads

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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