GitHub - alex-titarenko/markednet: A full-featured markdown parser and compiler, written in C# (.NET Standard). (original) (raw)

Marked .NET

Build NuGet Version NuGet Downloads

A full-featured markdown parser and compiler, written in C#. Port of original marked javascript project.

Example of usage

Here is an example of typical using of library:

var markdown = @" Heading

Sub-heading

Another deeper heading

Paragraphs are separated by a blank line.

Leave 2 spaces at the end of a line to do a
line break

Text attributes italic, bold, monospace, strikethrough .

A link.

Shopping list:

Numbered list:

  1. apples
  2. oranges
  3. pears ";

var marked = new Marked(); var html = marked.Parse(markdown);

Output:

Heading

Sub-heading

Another deeper heading

Paragraphs are separated by a blank line.

Leave 2 spaces at the end of a line to do a
line break

Text attributes italic, bold, monospace, strikethrough .

A link.

Shopping list:

Numbered list:

  1. apples
  2. oranges
  3. pears

Get it on NuGet!

Install-Package MarkedNet

License

MarkedNet is under the MIT license.