From f8a6e65bfdeb89a7ec340442060c6c053b7d8083 Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 17 Jan 2017 23:57:47 +0100 Subject: Release v0.9.1 --- vendor/github.com/russross/blackfriday/html.go | 949 +++++++++++++++++++++++++ 1 file changed, 949 insertions(+) create mode 100644 vendor/github.com/russross/blackfriday/html.go (limited to 'vendor/github.com/russross/blackfriday/html.go') diff --git a/vendor/github.com/russross/blackfriday/html.go b/vendor/github.com/russross/blackfriday/html.go new file mode 100644 index 00000000..74e67ee8 --- /dev/null +++ b/vendor/github.com/russross/blackfriday/html.go @@ -0,0 +1,949 @@ +// +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross . +// Distributed under the Simplified BSD License. +// See README.md for details. +// + +// +// +// HTML rendering backend +// +// + +package blackfriday + +import ( + "bytes" + "fmt" + "regexp" + "strconv" + "strings" +) + +// Html renderer configuration options. +const ( + HTML_SKIP_HTML = 1 << iota // skip preformatted HTML blocks + HTML_SKIP_STYLE // skip embedded