Ultra-fast markdown parsing in C#, powered by Sundown
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
brandonc 7a3087f1fc added license info 13 years ago
lib remove old submodule dir 14 years ago
src rename project to MoonShine 14 years ago
.gitignore Added .NET 3.5 support and project file. Enhanced README 14 years ago
.gitmodules submodule move 14 years ago
LICENSE added license info 13 years ago
README.markdown rename project to MoonShine 14 years ago
README.moonshine.html rename project to MoonShine 14 years ago

README.moonshine.html

<h1>MoonShine</h1>
<blockquote>
<p>A .NET wrapper for (with win32 port of) <a href="https://github.com/tanoku/sundown">sundown</a>, the <a href="http://daringfireball.net/projects/markdown">markdown</a> library</p>
</blockquote>
<p>libsundown.dll (included) is required for linkage. Also included is a simple console app for executing upskirt against markdown files.</p>

<p>MoonShine is at least 20x faster than <a href="http://code.google.com/p/markdownsharp/">MarkdownSharp</a> when run against MarkdownSharp's own benchmark app.</p>

<p><img src="https://spreadsheets.google.com/spreadsheet/oimg?key=0ArwgxSsSwOykdFQyam5kb1JNSGdBbXVFN2hxVjZqdWc&amp;oid=1&amp;zx=ux34vk7qqqf1" alt="MarkdownSharp vs. MoonShine">
</p>

<pre><code>MarkdownSharp v1.13 benchmark, takes 10 ~ 30 seconds...

input string length: 475
4000 iterations in 2318 ms (0.5795 ms per iteration)
input string length: 2356
1000 iterations in 2396 ms (2.396 ms per iteration)
input string length: 27737
100 iterations in 2528 ms (25.28 ms per iteration)
input string length: 11075
1 iteration in 12 ms
input string length: 88607
1 iteration in 103 ms
input string length: 354431
1 iteration in 380 ms
Benchmark completed in 7.752s


MoonShine v1.14.2 benchmark, takes 10 ~ 30 seconds...

input string length: 475
4000 iterations in 162 ms (0.0405 ms per iteration)
input string length: 2356
1000 iterations in 77 ms (0.077 ms per iteration)
input string length: 27737
100 iterations in 69 ms (0.69 ms per iteration)
input string length: 11075
1 iteration in 0 ms
input string length: 88607
1 iteration in 2 ms
input string length: 354431
1 iteration in 10 ms
Benchmark completed in 0.333s
</code></pre>

<h1>Usage</h1>

<pre><code>string html = Sundown.MoonShine.Markdownify(input);
</code></pre>

<p>Or if you don't want <a href="http://daringfireball.net/projects/smartypants/">smartypants</a> character encoding:</p>

<pre><code>string html = Sundown.MoonShine.Markdownify(input, false);
</code></pre>

<h1>Thank You to Contributors</h1>

<p><a href="https://github.com/jbevain">jbevain</a>: Markdown extensions</p>