-
Notifications
You must be signed in to change notification settings - Fork 17
/
README.moonshine.html
59 lines (45 loc) · 2.04 KB
/
README.moonshine.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<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&oid=1&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>