simplified BSD license
This commit is contained in:
parent
8233aad6ad
commit
f8f70572a4
42
README.md
42
README.md
|
@ -1,5 +1,5 @@
|
||||||
Black Friday
|
Blackfriday
|
||||||
============
|
===========
|
||||||
|
|
||||||
This is an implementation of John Gruber's [markdown][1] in [Go][2].
|
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
|
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.
|
* The Markdown v1.0.3 test suite passes with the `--tidy` option.
|
||||||
Without `--tidy`, the differences appear to be bugs/dubious
|
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,
|
* Common extensions, including table support, fenced code blocks,
|
||||||
autolinks, strikethroughs, non-strict emphasis, etc.
|
autolinks, strikethroughs, non-strict emphasis, etc.
|
||||||
|
@ -52,9 +52,9 @@ All features of upskirt are supported, including:
|
||||||
errors that were present in the C code).
|
errors that were present in the C code).
|
||||||
|
|
||||||
* Good performance. I have not done rigorous benchmarking, but
|
* 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
|
library packages in Go. The source code is pretty
|
||||||
self-contained, so it is easy to add to any project.
|
self-contained, so it is easy to add to any project.
|
||||||
|
|
||||||
|
@ -98,6 +98,38 @@ Todo
|
||||||
* Markdown pretty-printer output engine
|
* 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"
|
[1]: http://daringfireball.net/projects/markdown/ "Markdown"
|
||||||
[2]: http://golang.org/ "Go Language"
|
[2]: http://golang.org/ "Go Language"
|
||||||
[3]: http://github.com/tanoku/upskirt "Upskirt"
|
[3]: http://github.com/tanoku/upskirt "Upskirt"
|
||||||
|
|
9
block.go
9
block.go
|
@ -1,7 +1,10 @@
|
||||||
//
|
//
|
||||||
// Black Friday Markdown Processor
|
// Blackfriday Markdown Processor
|
||||||
// Originally based on http://github.com/tanoku/upskirt
|
// Available at http://github.com/russross/blackfriday
|
||||||
// by Russ Ross <russ@russross.com>
|
//
|
||||||
|
// Copyright © 2011 Russ Ross <russ@russross.com>.
|
||||||
|
// Licensed under the Simplified BSD License.
|
||||||
|
// See README.md for details.
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
//
|
//
|
||||||
// Black Friday Markdown Processor
|
// Blackfriday Markdown Processor
|
||||||
// Originally based on http://github.com/tanoku/upskirt
|
// Available at http://github.com/russross/blackfriday
|
||||||
// by Russ Ross <russ@russross.com>
|
//
|
||||||
|
// Copyright © 2011 Russ Ross <russ@russross.com>.
|
||||||
|
// Licensed under the Simplified BSD License.
|
||||||
|
// See README.md for details.
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
//
|
//
|
||||||
// Black Friday Markdown Processor
|
// Blackfriday Markdown Processor
|
||||||
// Originally based on http://github.com/tanoku/upskirt
|
// Available at http://github.com/russross/blackfriday
|
||||||
// by Russ Ross <russ@russross.com>
|
//
|
||||||
|
// Copyright © 2011 Russ Ross <russ@russross.com>.
|
||||||
|
// Licensed under the Simplified BSD License.
|
||||||
|
// See README.md for details.
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
9
html.go
9
html.go
|
@ -1,7 +1,10 @@
|
||||||
//
|
//
|
||||||
// Black Friday Markdown Processor
|
// Blackfriday Markdown Processor
|
||||||
// Originally based on http://github.com/tanoku/upskirt
|
// Available at http://github.com/russross/blackfriday
|
||||||
// by Russ Ross <russ@russross.com>
|
//
|
||||||
|
// Copyright © 2011 Russ Ross <russ@russross.com>.
|
||||||
|
// Licensed under the Simplified BSD License.
|
||||||
|
// See README.md for details.
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
//
|
//
|
||||||
// Black Friday Markdown Processor
|
// Blackfriday Markdown Processor
|
||||||
// Originally based on http://github.com/tanoku/upskirt
|
// Available at http://github.com/russross/blackfriday
|
||||||
// by Russ Ross <russ@russross.com>
|
//
|
||||||
|
// Copyright © 2011 Russ Ross <russ@russross.com>.
|
||||||
|
// Licensed under the Simplified BSD License.
|
||||||
|
// See README.md for details.
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
//
|
//
|
||||||
// Black Friday Markdown Processor
|
// Blackfriday Markdown Processor
|
||||||
// Originally based on http://github.com/tanoku/upskirt
|
// Available at http://github.com/russross/blackfriday
|
||||||
// by Russ Ross <russ@russross.com>
|
//
|
||||||
|
// Copyright © 2011 Russ Ross <russ@russross.com>.
|
||||||
|
// Licensed under the Simplified BSD License.
|
||||||
|
// See README.md for details.
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
11
latex.go
11
latex.go
|
@ -1,7 +1,10 @@
|
||||||
//
|
//
|
||||||
// Black Friday Markdown Processor
|
// Blackfriday Markdown Processor
|
||||||
// Originally based on http://github.com/tanoku/upskirt
|
// Available at http://github.com/russross/blackfriday
|
||||||
// by Russ Ross <russ@russross.com>
|
//
|
||||||
|
// Copyright © 2011 Russ Ross <russ@russross.com>.
|
||||||
|
// Licensed under the Simplified BSD License.
|
||||||
|
// See README.md for details.
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -304,7 +307,7 @@ func latexDocumentHeader(out *bytes.Buffer, opaque interface{}) {
|
||||||
out.WriteString(" urlcolor=black,%\n")
|
out.WriteString(" urlcolor=black,%\n")
|
||||||
out.WriteString(" pdfstartview=FitH,%\n")
|
out.WriteString(" pdfstartview=FitH,%\n")
|
||||||
out.WriteString(" breaklinks=true,%\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("\n")
|
||||||
out.WriteString("\\newcommand{\\HRule}{\\rule{\\linewidth}{0.5mm}}\n")
|
out.WriteString("\\newcommand{\\HRule}{\\rule{\\linewidth}{0.5mm}}\n")
|
||||||
out.WriteString("\\addtolength{\\parskip}{0.5\\baselineskip}\n")
|
out.WriteString("\\addtolength{\\parskip}{0.5\\baselineskip}\n")
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
//
|
//
|
||||||
// Black Friday Markdown Processor
|
// Blackfriday Markdown Processor
|
||||||
// Originally based on http://github.com/tanoku/upskirt
|
// Available at http://github.com/russross/blackfriday
|
||||||
// by Russ Ross <russ@russross.com>
|
//
|
||||||
|
// Copyright © 2011 Russ Ross <russ@russross.com>.
|
||||||
|
// Licensed under the Simplified BSD License.
|
||||||
|
// See README.md for details.
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
//
|
//
|
||||||
// Black Friday Markdown Processor
|
// Blackfriday Markdown Processor
|
||||||
// Originally based on http://github.com/tanoku/upskirt
|
// Available at http://github.com/russross/blackfriday
|
||||||
// by Russ Ross <russ@russross.com>
|
//
|
||||||
|
// Copyright © 2011 Russ Ross <russ@russross.com>.
|
||||||
|
// Licensed under the Simplified BSD License.
|
||||||
|
// See README.md for details.
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
//
|
//
|
||||||
// Black Friday Markdown Processor
|
// Blackfriday Markdown Processor
|
||||||
// Originally based on http://github.com/tanoku/upskirt
|
// Available at http://github.com/russross/blackfriday
|
||||||
// by Russ Ross <russ@russross.com>
|
//
|
||||||
|
// Copyright © 2011 Russ Ross <russ@russross.com>.
|
||||||
|
// Licensed under the Simplified BSD License.
|
||||||
|
// See README.md for details.
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue