Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename project to MoonShine

  • Loading branch information...
commit 13338229def92eec43ef20acfc6c1d5a8fc16486 1 parent 701a994
@brandonc authored
View
18 README.markdown
@@ -1,13 +1,13 @@
-DownBlouse
+MoonShine
==========
-> A .NET wrapper and win32 port of [upskirt][], the [markdown][] library
+> A .NET wrapper for (with win32 port of) [sundown][], the [markdown][] library
-libupskirt.dll (included) is required for linkage. Also included is a simple console app for executing upskirt against markdown files.
+libsundown.dll (included) is required for linkage. Also included is a simple console app for executing upskirt against markdown files.
-DownBlouse is at least 20x faster than [MarkdownSharp][] when run against MarkdownSharp's own benchmark app.
+MoonShine is at least 20x faster than [MarkdownSharp][] when run against MarkdownSharp's own benchmark app.
-![MarkdownSharp vs. DownBlouse](http://i.imgur.com/gIRuN.png)
+![MarkdownSharp vs. MoonShine](https://spreadsheets.google.com/spreadsheet/oimg?key=0ArwgxSsSwOykdFQyam5kb1JNSGdBbXVFN2hxVjZqdWc&oid=1&zx=ux34vk7qqqf1)
MarkdownSharp v1.13 benchmark, takes 10 ~ 30 seconds...
@@ -26,7 +26,7 @@ DownBlouse is at least 20x faster than [MarkdownSharp][] when run against Markdo
Benchmark completed in 7.752s
- DownBlouse v1.14.2 benchmark, takes 10 ~ 30 seconds...
+ MoonShine v1.14.2 benchmark, takes 10 ~ 30 seconds...
input string length: 475
4000 iterations in 162 ms (0.0405 ms per iteration)
@@ -44,17 +44,17 @@ DownBlouse is at least 20x faster than [MarkdownSharp][] when run against Markdo
# Usage
- string html = DownBlouse.DownBlouse.Markdownify(input);
+ string html = Sundown.MoonShine.Markdownify(input);
Or if you don't want [smartypants][] character encoding:
- string html = DownBlouse.DownBlouse.Markdownify(input, false);
+ string html = Sundown.MoonShine.Markdownify(input, false);
# Thank You to Contributors
[jbevain][]: Markdown extensions
-[upskirt]: https://github.com/tanoku/upskirt
+[sundown]: https://github.com/tanoku/sundown
[markdown]: http://daringfireball.net/projects/markdown
[smartypants]: http://daringfireball.net/projects/smartypants/
[MarkdownSharp]: http://code.google.com/p/markdownsharp/
View
18 README.downblouse.html → README.moonshine.html
@@ -1,12 +1,12 @@
-<h1>DownBlouse</h1>
+<h1>MoonShine</h1>
<blockquote>
-<p>A .NET wrapper and win32 port of <a href="https://github.com/tanoku/upskirt">upskirt</a>, the <a href="http://daringfireball.net/projects/markdown">markdown</a> library</p>
+<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>libupskirt.dll (included) is required for linkage. Also included is a simple console app for executing upskirt against markdown files.</p>
+<p>libsundown.dll (included) is required for linkage. Also included is a simple console app for executing upskirt against markdown files.</p>
-<p>DownBlouse 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>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="http://i.imgur.com/gIRuN.png" alt="MarkdownSharp vs. DownBlouse">
+<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...
@@ -26,7 +26,7 @@
Benchmark completed in 7.752s
-DownBlouse v1.14.2 benchmark, takes 10 ~ 30 seconds...
+MoonShine v1.14.2 benchmark, takes 10 ~ 30 seconds...
input string length: 475
4000 iterations in 162 ms (0.0405 ms per iteration)
@@ -45,15 +45,15 @@
<h1>Usage</h1>
-<pre><code>string html = DownBlouse.DownBlouse.Markdownify(input);
+<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 = DownBlouse.DownBlouse.Markdownify(input, false);
+<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>
-
+
View
BIN  lib/libsundown.dll
Binary file not shown
View
BIN  lib/libupskirt.dll
Binary file not shown
View
6 src/DownBlouse.vsmdi
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
- <TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6">
- <RunConfiguration id="44ecb103-14ee-46a0-97de-cab59ba8961e" name="Local" storage="local.testsettings" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
- </TestList>
-</TestLists>
View
8 ...nBlouse.Console/DownBlouse.Console.csproj → ...oonShine.Console/MoonShine.Console.csproj
@@ -8,8 +8,8 @@
<ProjectGuid>{E04DBA71-AC09-4D8A-85F8-196280C83565}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>DownBlouse.ConsoleApp</RootNamespace>
- <AssemblyName>downblouse</AssemblyName>
+ <RootNamespace>MoonShine.ConsoleApp</RootNamespace>
+ <AssemblyName>bootleg</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
@@ -48,9 +48,9 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\downblouse\DownBlouse.csproj">
+ <ProjectReference Include="..\MoonShine\MoonShine.csproj">
<Project>{AB54365F-D0C1-49B5-AFA4-3FA0296A5CCD}</Project>
- <Name>DownBlouse</Name>
+ <Name>MoonShine</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
View
6 src/DownBlouse.Console/Program.cs → src/MoonShine.Console/Program.cs
@@ -4,7 +4,7 @@
using System.Text;
using System.IO;
-namespace DownBlouse.ConsoleApp {
+namespace MoonShine.ConsoleApp {
class Program {
static int Main(string[] args) {
string output = String.Empty;
@@ -13,13 +13,13 @@ class Program {
// File input
if (File.Exists(args[0])) {
- Console.WriteLine(DownBlouse.Markdownify(File.ReadAllText(args[0]), smartypants : false));
+ Console.WriteLine(Sundown.MoonShine.Markdownify(File.ReadAllText(args[0]), smartypants : false));
} else {
Console.Error.WriteLine("Could not open file " + args[0]);
return -1;
}
} else {
- Console.Error.WriteLine("Usage: downblouse.exe <filepath>");
+ Console.Error.WriteLine("Usage: moonshine.exe <filepath>");
}
return 0;
View
10 ...Blouse.Console/Properties/AssemblyInfo.cs → ...nShine.Console/Properties/AssemblyInfo.cs
@@ -5,11 +5,11 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
-[assembly: AssemblyTitle("downblouse")]
-[assembly: AssemblyDescription("DownBlouse console app to process markdown files.")]
+[assembly: AssemblyTitle("bootleg")]
+[assembly: AssemblyDescription("moonshine console app to process markdown files.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("downblouse")]
+[assembly: AssemblyProduct("MoonShine")]
[assembly: AssemblyCopyright("Copyright ©2011 Brandon Croft")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.1.0.0")]
-[assembly: AssemblyFileVersion("0.1.0.0")]
+[assembly: AssemblyVersion("0.1.1.0")]
+[assembly: AssemblyFileVersion("0.1.1.0")]
View
4 src/DownBlouse.sln → src/MoonShine.sln
@@ -1,9 +1,9 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DownBlouse", "DownBlouse\DownBlouse.csproj", "{AB54365F-D0C1-49B5-AFA4-3FA0296A5CCD}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MoonShine", "MoonShine\MoonShine.csproj", "{AB54365F-D0C1-49B5-AFA4-3FA0296A5CCD}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DownBlouse.Console", "DownBlouse.Console\DownBlouse.Console.csproj", "{E04DBA71-AC09-4D8A-85F8-196280C83565}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MoonShine.Console", "MoonShine.Console\MoonShine.Console.csproj", "{E04DBA71-AC09-4D8A-85F8-196280C83565}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{90DB6062-8DA0-43A9-9D4F-2FBA13A98868}"
ProjectSection(SolutionItems) = preProject
View
40 src/DownBlouse/DownBlouse.cs → src/MoonShine/MoonShine.cs
@@ -4,7 +4,7 @@
using System.Text;
using System.Runtime.InteropServices;
-namespace DownBlouse {
+namespace Sundown {
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
struct buf {
[MarshalAs(UnmanagedType.LPStr)]
@@ -139,32 +139,32 @@ public enum MarkdownExtensions {
SpaceHeaders = 1 << 6,
}
- public class DownBlouse {
- [DllImport("libupskirt.dll", CallingConvention = CallingConvention.Cdecl)]
- private static extern void upshtml_renderer(ref mkd_renderer renderer, uint render_flags);
+ public class MoonShine {
+ [DllImport("libsundown.dll", CallingConvention = CallingConvention.Cdecl)]
+ private static extern void sdhtml_renderer(ref mkd_renderer renderer, uint render_flags);
- [DllImport("libupskirt.dll", CallingConvention = CallingConvention.Cdecl)]
- private static extern void upshtml_free_renderer(ref mkd_renderer renderer);
+ [DllImport("libsundown.dll", CallingConvention = CallingConvention.Cdecl)]
+ private static extern void sdhtml_free_renderer(ref mkd_renderer renderer);
- [DllImport("libupskirt.dll", CallingConvention = CallingConvention.Cdecl)]
- private static extern void upshtml_smartypants(IntPtr ob, IntPtr text);
+ [DllImport("libsundown.dll", CallingConvention = CallingConvention.Cdecl)]
+ private static extern void sdhtml_smartypants(IntPtr ob, IntPtr text);
- [DllImport("libupskirt.dll", CallingConvention = CallingConvention.Cdecl)]
- private static extern void ups_markdown(IntPtr ob, ref buf ib, ref mkd_renderer renderer, uint extensions);
+ [DllImport("libsundown.dll", CallingConvention = CallingConvention.Cdecl)]
+ private static extern void sd_markdown(IntPtr ob, ref buf ib, ref mkd_renderer renderer, uint extensions);
- [DllImport("libupskirt.dll", CallingConvention = CallingConvention.Cdecl)]
- private static extern void ups_version(ref int ver_major, ref int ver_minor, ref int ver_revision);
+ [DllImport("libsundown.dll", CallingConvention = CallingConvention.Cdecl)]
+ private static extern void sd_version(ref int ver_major, ref int ver_minor, ref int ver_revision);
- [DllImport("libupskirt.dll", CallingConvention = CallingConvention.Cdecl)]
+ [DllImport("libsundown.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void bufrelease(IntPtr buf);
- [DllImport("libupskirt.dll", CallingConvention = CallingConvention.Cdecl)]
+ [DllImport("libsundown.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr bufnew(uint size);
- public static string UpskirtVersion()
+ public static string SundownVersion()
{
int maj = 0, min = 0, rev = 0;
- ups_version(ref maj, ref min, ref rev);
+ sd_version(ref maj, ref min, ref rev);
return String.Format("{0}.{1}.{2}", maj, min, rev);
}
@@ -196,15 +196,15 @@ public static string UpskirtVersion()
IntPtr poutput = bufnew(64);
- upshtml_renderer(ref renderer, (uint)0);
- ups_markdown(poutput, ref input, ref renderer, (uint)extensions);
- upshtml_free_renderer(ref renderer);
+ sdhtml_renderer(ref renderer, (uint)0);
+ sd_markdown(poutput, ref input, ref renderer, (uint)extensions);
+ sdhtml_free_renderer(ref renderer);
buf output;
if (smartypants) {
IntPtr psmarty = bufnew(128);
- upshtml_smartypants(psmarty, poutput);
+ sdhtml_smartypants(psmarty, poutput);
output = (buf)Marshal.PtrToStructure(psmarty, typeof(buf));
bufrelease(psmarty);
} else {
View
6 src/DownBlouse/DownBlouse.csproj → src/MoonShine/MoonShine.csproj
@@ -8,8 +8,8 @@
<ProjectGuid>{AB54365F-D0C1-49B5-AFA4-3FA0296A5CCD}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>DownBlouse</RootNamespace>
- <AssemblyName>libdownblouse</AssemblyName>
+ <RootNamespace>Sundown</RootNamespace>
+ <AssemblyName>MoonShine</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
@@ -43,7 +43,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
- <Compile Include="DownBlouse.cs" />
+ <Compile Include="MoonShine.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
View
10 src/DownBlouse/Properties/AssemblyInfo.cs → src/MoonShine/Properties/AssemblyInfo.cs
@@ -5,11 +5,11 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
-[assembly: AssemblyTitle("libdownblouse")]
-[assembly: AssemblyDescription("A .NET wrapper for the upskirt markdown library")]
+[assembly: AssemblyTitle("MoonShine")]
+[assembly: AssemblyDescription("A .NET wrapper for the sundown markdown library")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("downblouse")]
+[assembly: AssemblyProduct("MoonShine")]
[assembly: AssemblyCopyright("Copyright ©2011 Brandon Croft")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.1.0.0")]
-[assembly: AssemblyFileVersion("0.1.0.0")]
+[assembly: AssemblyVersion("0.1.1.0")]
+[assembly: AssemblyFileVersion("0.1.1.0")]
View
8 src/DownBlouse_NET_3_5.csproj → src/MoonShine_NET35.csproj
@@ -8,8 +8,8 @@
<ProjectGuid>{93A0592C-3276-42F4-88C6-8FA00946DD04}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>DownBlouse</RootNamespace>
- <AssemblyName>libdownblouse</AssemblyName>
+ <RootNamespace>Sundown</RootNamespace>
+ <AssemblyName>MoonShine</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
@@ -47,8 +47,8 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
- <Compile Include="DownBlouse\DownBlouse.cs" />
- <Compile Include="DownBlouse\Properties\AssemblyInfo.cs" />
+ <Compile Include="MoonShine\MoonShine.cs" />
+ <Compile Include="MoonShine\Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
View
2  src/DownBlouse_NET_3_5.sln → src/MoonShine_NET35.sln
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DownBlouse_NET_3_5", "DownBlouse_NET_3_5.csproj", "{93A0592C-3276-42F4-88C6-8FA00946DD04}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MoonShine_NET35", "MoonShine_NET35.csproj", "{93A0592C-3276-42F4-88C6-8FA00946DD04}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

0 comments on commit 1333822

Please sign in to comment.
Something went wrong with that request. Please try again.