Meltdown 2.2.0

dotnet add package Meltdown --version 2.2.0
NuGet\Install-Package Meltdown -Version 2.2.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="Meltdown" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Meltdown --version 2.2.0
#r "nuget: Meltdown, 2.2.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.
// Install Meltdown as a Cake Addin
#addin nuget:?package=Meltdown&version=2.2.0

// Install Meltdown as a Cake Tool
#tool nuget:?package=Meltdown&version=2.2.0

Simple Markdown parser with send email method.

Example

string msg = "[[1]]Heading Level 1"
msg + = "\nAA[[This is Bold]]BB";
msg + = "\nAA((This is Italics))BB";
msg + = "\nAA{{This is Underline}}BB";
msg + = "\nAA((red|This is red))BB((blue|This is blue))CC";
msg += "\nAA[({This is bold-italics-underline})]BB";
string HtmlText = Meltdown.Meltdown.Parse(msg);
string Result = Meltdown.Meltdown.SendMail(
            new MailAddress(model.From, model.Name), model.Pwd,
            new MailAddress(model.To, model.To),
            model.Subject, HtmlText,
            model.Url, int.Parse(model.Port));

HtmlText Result

<h1>Heading Level 1</h1>
<p>AA<b>This is Bold</b>BB</p>
<p>AA<i>This is Italics</i>BB</p>
<p>AA<u>This is Underline</u>BB</p>
<p>AA<font color="Red">This is red</font>BB<font color="Blue">This is blue</font>CC</p>
<p>AA<b><i><u>This is bold-italics-underline</u></i><b>BB</p>

Key

Format Markup Notes
Bold [[text]] e.g. Bold is [[Text]]
Italics ((text))
UnderLine {{text}}
Bold-Italics [(text)] Order doesn't matter, but close delimiter must mirror
Bold-Underline [{text}] Order doesn't matter, but close delimiter must mirror
Italics-Underline ({text}) Order doesn't matter, but close delimiter must mirror
Bold-Italics-Underline [({text})] Order doesn't matter, but close delimiter must mirror
Font Color ((color name|text))
Links <<url>>
,, <<link text|url>>
Heading [[n]] at start of line where n=1..9 eg [[2]]Heading Level 2
Bullet List -space or -tab at start of line Only one level of list
List Multilevel ((n)) at start of line where n=1..9
Table ((T)) at start of each line Table Header row. Headings are Csv list.
,, ((t)) at start of each line Table Data row. Cells are a Csv list
New line !! Anywhere in text translates to <br/>
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net5.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
2.2.0 274 12/27/2021
2.1.1 243 12/21/2021
2.1.0 233 12/12/2021
2.0.1 221 12/2/2021
2.0.0 236 12/1/2021

Tolerates reversal of delimiter chars for bold-italics etc.