From a0bca42a7ad98a37f4bdc4d7adc419471163edfb Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 5 May 2021 22:03:28 +0200 Subject: Update vendor (#1461) * Update vendored libs * Fix slack api changes --- vendor/github.com/gomarkdown/markdown/html/doc.go | 2 +- vendor/github.com/gomarkdown/markdown/html/renderer.go | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'vendor/github.com/gomarkdown/markdown') diff --git a/vendor/github.com/gomarkdown/markdown/html/doc.go b/vendor/github.com/gomarkdown/markdown/html/doc.go index b8d498d6..93a2cf55 100644 --- a/vendor/github.com/gomarkdown/markdown/html/doc.go +++ b/vendor/github.com/gomarkdown/markdown/html/doc.go @@ -9,7 +9,7 @@ A renderer can be configured with multiple options: flags := html.CommonFlags | html.CompletePage | html.HrefTargetBlank opts := html.RendererOptions{ - TItle: "A custom title", + Title: "A custom title", Flags: flags, } renderer := html.NewRenderer(opts) diff --git a/vendor/github.com/gomarkdown/markdown/html/renderer.go b/vendor/github.com/gomarkdown/markdown/html/renderer.go index c57d7eb6..1b466876 100644 --- a/vendor/github.com/gomarkdown/markdown/html/renderer.go +++ b/vendor/github.com/gomarkdown/markdown/html/renderer.go @@ -43,6 +43,7 @@ const ( SmartypantsAngledQuotes // Enable angled double quotes (with Smartypants) for double quotes rendering SmartypantsQuotesNBSP // Enable « French guillemets » (with Smartypants) TOC // Generate a table of contents + LazyLoadImages // Include loading="lazy" with images CommonFlags Flags = Smartypants | SmartypantsFractions | SmartypantsDashes | SmartypantsLatexDashes ) @@ -589,7 +590,11 @@ func (r *Renderer) imageEnter(w io.Writer, image *ast.Image) { //if options.safe && potentiallyUnsafe(dest) { //out(w, `