tweak comments

This commit is contained in:
Krzysztof Kowalczyk 2018-01-25 13:15:22 -08:00
parent 49a9386a12
commit f5c4e6b8da
3 changed files with 35 additions and 36 deletions

View File

@ -1,13 +1,12 @@
# Travis CI (http://travis-ci.org/) is a continuous integration service for # Travis CI (http://travis-ci.org/) is a continuous integration service for
# open source projects. This file configures it to run unit tests for # open source projects. This file configures it to run unit tests for
# blackfriday. # markdown.
language: go language: go
go: go:
- 1.5 - 1.5
- 1.6 - 1.9
- 1.7
install: install:
- go get -d -t -v ./... - go get -d -t -v ./...

View File

@ -1,29 +1,31 @@
Blackfriday is distributed under the Simplified BSD License: Markdown is distributed under the Simplified BSD License:
> Copyright © 2011 Russ Ross Copyright © 2011 Russ Ross
> All rights reserved. Copyright © 2018 Krzysztof Kowalczyk
> Copyright © 2018 Authors
> Redistribution and use in source and binary forms, with or without All rights reserved.
> modification, are permitted provided that the following conditions
> are met: Redistribution and use in source and binary forms, with or without
> modification, are permitted provided that the following conditions
> 1. Redistributions of source code must retain the above copyright are met:
> notice, this list of conditions and the following disclaimer.
> 1. Redistributions of source code must retain the above copyright
> 2. Redistributions in binary form must reproduce the above notice, this list of conditions and the following disclaimer.
> copyright notice, this list of conditions and the following
> disclaimer in the documentation and/or other materials provided with 2. Redistributions in binary form must reproduce the above
> the distribution. copyright notice, this list of conditions and the following
> disclaimer in the documentation and/or other materials provided with
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS the distribution.
> "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
> LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
> COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
> INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
> BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
> LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
> ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
> POSSIBILITY OF SUCH DAMAGE. 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.

View File

@ -23,8 +23,7 @@ import (
// CompletePage flag is on. // CompletePage flag is on.
const Version = "2.0" const Version = "2.0"
// Extensions is a bitwise or'ed collection of enabled Blackfriday's // Extensions is a bitfield of enabled extensions.
// extensions.
type Extensions int type Extensions int
// These are the supported markdown parsing extensions. // These are the supported markdown parsing extensions.
@ -321,15 +320,14 @@ func WithRenderer(r Renderer) Option {
} }
} }
// WithExtensions allows you to pick some of the many extensions provided by // WithExtensions allows you to enable extensions
// Blackfriday. You can bitwise OR them.
func WithExtensions(e Extensions) Option { func WithExtensions(e Extensions) Option {
return func(p *Markdown) { return func(p *Markdown) {
p.extensions = e p.extensions = e
} }
} }
// WithNoExtensions turns off all extensions and custom behavior. // WithNoExtensions turns off all extensions
func WithNoExtensions() Option { func WithNoExtensions() Option {
return func(p *Markdown) { return func(p *Markdown) {
p.extensions = NoExtensions p.extensions = NoExtensions