simplified BSD license
Russ Ross russ@russross.com
Mon, 27 Jun 2011 20:11:32 -0600
11 files changed,
98 insertions(+),
36 deletions(-)
M
README.md
→
README.md
@@ -1,5 +1,5 @@
-Black Friday -============ +Blackfriday +=========== This is an implementation of John Gruber's [markdown][1] in [Go][2]. It is a translation of the [upskirt][3] library written in C with a@@ -40,7 +40,7 @@ All features of upskirt are supported, including:
* The Markdown v1.0.3 test suite passes with the `--tidy` option. Without `--tidy`, the differences appear to be bugs/dubious - features in the original. + features in the original, mostly related to whitespace. * Common extensions, including table support, fenced code blocks, autolinks, strikethroughs, non-strict emphasis, etc.@@ -52,9 +52,9 @@ than upskirt (Go's bounds-checking uncovered a few off-by-one
errors that were present in the C code). * Good performance. I have not done rigorous benchmarking, but - informal testing suggests it is around 3.5x slower than upskirt. + informal testing suggests it is around 3--4x slower than upskirt. -* Minimal dependencies. blackfriday only depends on standard +* Minimal dependencies. Blackfriday only depends on standard library packages in Go. The source code is pretty self-contained, so it is easy to add to any project.@@ -96,6 +96,38 @@ * More unit testing
* Code cleanup * Better code documentation * Markdown pretty-printer output engine + + +License +------- + +Blackfriday is distributed under the Simplified BSD License: + +> Copyright © 2011 Russ Ross <russ@russross.com>. All rights reserved. +> +> Redistribution and use in source and binary forms, with or without modification, are +> permitted provided that the following conditions are met: +> +> 1. Redistributions of source code must retain the above copyright notice, this list of +> conditions and the following disclaimer. +> +> 2. Redistributions in binary form must reproduce the above copyright notice, this list +> of conditions and the following disclaimer in the documentation and/or other materials +> provided with the distribution. +> +> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ``AS IS'' AND ANY EXPRESS OR IMPLIED +> WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +> FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR +> CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +> CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +> SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +> ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +> NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +> ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +> +> The views and conclusions contained in the software and documentation are those of the +> authors and should not be interpreted as representing official policies, either expressed +> or implied, of the copyright holder. [1]: http://daringfireball.net/projects/markdown/ "Markdown"
M
block.go
→
block.go
@@ -1,7 +1,10 @@
// -// Black Friday Markdown Processor -// Originally based on http://github.com/tanoku/upskirt -// by Russ Ross <russ@russross.com> +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Licensed under the Simplified BSD License. +// See README.md for details. // //
M
block_test.go
→
block_test.go
@@ -1,7 +1,10 @@
// -// Black Friday Markdown Processor -// Originally based on http://github.com/tanoku/upskirt -// by Russ Ross <russ@russross.com> +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Licensed under the Simplified BSD License. +// See README.md for details. // //
M
example/main.go
→
example/main.go
@@ -1,7 +1,10 @@
// -// Black Friday Markdown Processor -// Originally based on http://github.com/tanoku/upskirt -// by Russ Ross <russ@russross.com> +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Licensed under the Simplified BSD License. +// See README.md for details. // //
M
html.go
→
html.go
@@ -1,7 +1,10 @@
// -// Black Friday Markdown Processor -// Originally based on http://github.com/tanoku/upskirt -// by Russ Ross <russ@russross.com> +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Licensed under the Simplified BSD License. +// See README.md for details. // //
M
inline.go
→
inline.go
@@ -1,7 +1,10 @@
// -// Black Friday Markdown Processor -// Originally based on http://github.com/tanoku/upskirt -// by Russ Ross <russ@russross.com> +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Licensed under the Simplified BSD License. +// See README.md for details. // //
M
inline_test.go
→
inline_test.go
@@ -1,7 +1,10 @@
// -// Black Friday Markdown Processor -// Originally based on http://github.com/tanoku/upskirt -// by Russ Ross <russ@russross.com> +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Licensed under the Simplified BSD License. +// See README.md for details. // //
M
latex.go
→
latex.go
@@ -1,7 +1,10 @@
// -// Black Friday Markdown Processor -// Originally based on http://github.com/tanoku/upskirt -// by Russ Ross <russ@russross.com> +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Licensed under the Simplified BSD License. +// See README.md for details. // //@@ -304,7 +307,7 @@ out.WriteString(" linkcolor=black,%\n")
out.WriteString(" urlcolor=black,%\n") out.WriteString(" pdfstartview=FitH,%\n") out.WriteString(" breaklinks=true,%\n") - out.WriteString(" pdfauthor={Black Friday Markdown Processor}}\n") + out.WriteString(" pdfauthor={Blackfriday Markdown Processor}}\n") out.WriteString("\n") out.WriteString("\\newcommand{\\HRule}{\\rule{\\linewidth}{0.5mm}}\n") out.WriteString("\\addtolength{\\parskip}{0.5\\baselineskip}\n")
M
markdown.go
→
markdown.go
@@ -1,7 +1,10 @@
// -// Black Friday Markdown Processor -// Originally based on http://github.com/tanoku/upskirt -// by Russ Ross <russ@russross.com> +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Licensed under the Simplified BSD License. +// See README.md for details. // //
M
smartypants.go
→
smartypants.go
@@ -1,7 +1,10 @@
// -// Black Friday Markdown Processor -// Originally based on http://github.com/tanoku/upskirt -// by Russ Ross <russ@russross.com> +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Licensed under the Simplified BSD License. +// See README.md for details. // //
M
upskirtref_test.go
→
upskirtref_test.go
@@ -1,7 +1,10 @@
// -// Black Friday Markdown Processor -// Originally based on http://github.com/tanoku/upskirt -// by Russ Ross <russ@russross.com> +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Licensed under the Simplified BSD License. +// See README.md for details. // //