From 4292a2106d741f63f6d9c531f65dd32dfafa89f8 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Sun, 27 Dec 2020 14:48:21 +0100 Subject: [PATCH] Update for latest release of yuin/goldmark https://github.com/yuin/goldmark/commit/9e0189df270cb443c204b51e89e2b0749b98370c broke backwards compatibility by renaming exported structs without a bump of the module's major version. This commit updates glamour to use goldmark's new API. --- ansi/renderer.go | 2 +- go.mod | 2 +- go.sum | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ansi/renderer.go b/ansi/renderer.go index 65a9e80..ddadbb7 100644 --- a/ansi/renderer.go +++ b/ansi/renderer.go @@ -73,7 +73,7 @@ func (r *ANSIRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer) { reg.Register(astext.KindFootnote, r.renderNode) reg.Register(astext.KindFootnoteList, r.renderNode) reg.Register(astext.KindFootnoteLink, r.renderNode) - reg.Register(astext.KindFootnoteBackLink, r.renderNode) + reg.Register(astext.KindFootnoteBacklink, r.renderNode) // checkboxes reg.Register(astext.KindTaskCheckBox, r.renderNode) diff --git a/go.mod b/go.mod index 51086aa..cf52203 100644 --- a/go.mod +++ b/go.mod @@ -8,6 +8,6 @@ require ( github.com/muesli/reflow v0.2.0 github.com/muesli/termenv v0.7.4 github.com/olekukonko/tablewriter v0.0.4 - github.com/yuin/goldmark v1.2.1 + github.com/yuin/goldmark v1.3.1 github.com/yuin/goldmark-emoji v1.0.1 ) diff --git a/go.sum b/go.sum index 94a1d3a..8b08aa2 100644 --- a/go.sum +++ b/go.sum @@ -49,6 +49,8 @@ github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0 github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/yuin/goldmark v1.2.1 h1:ruQGxdhGHe7FWOJPT0mKs5+pD2Xs1Bm/kdGlHO04FmM= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.1 h1:eVwehsLsZlCJCwXyGLgg+Q4iFWE/eTIMG0e8waCmm/I= +github.com/yuin/goldmark v1.3.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark-emoji v1.0.1 h1:ctuWEyzGBwiucEqxzwe0SOYDXPAucOrE9NQC18Wa1os= github.com/yuin/goldmark-emoji v1.0.1/go.mod h1:2w1E6FEWLcDQkoTE+7HU6QF1F6SLlNGjRIBbIZQFqkQ= golang.org/x/net v0.0.0-20181220203305-927f97764cc3 h1:eH6Eip3UpmR+yM/qI9Ijluzb1bNv/cAU/n+6l8tRSis=