GitHub - alex-titarenko/markednet: A full-featured markdown parser and compiler, written in C# (.NET Standard). (original) (raw)
Marked .NET
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:
- apples
- oranges
- pears
Numbered list:
- apples
- oranges
- 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:
- apples
- oranges
- pears
Numbered list:
- apples
- oranges
- pears
Get it on NuGet!
Install-Package MarkedNet
License
MarkedNet is under the MIT license.