CommonMark for C# using CodeFluent Runtime
Markdown is a plain text language that can be converted to HTML. This language is well adopted: GitHub, StackOverflow, Reddit, some blogging platforms, and many others.
This is just a sample/preview and not aims to be used in production.
The full (but very short) code is available on GitHub: https://github.com/SoftFluent/SoftFluent.CommonMarkdown
Here’s the main code:
And how to use it:
Markdown.ToHtml(@"# Hello there This is a paragraph. - one - two - three - four 1. pirate 2. ninja 3. zombie")
This code gives the following result :
<h1>Hello there</h1> <p>This is a paragraph.</p> <ul> <li>one</li> <li>two</li> <li>three</li> <li>four</li> </ul> <ol> <li>pirate</li> <li>ninja</li> <li>zombie</li> </ol>
Have fun with Markdown,
The R&D Team