From bfb9613a14ab2d93a4474e5486d22e52a9d5e2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 6 Nov 2019 20:10:47 +0100 Subject: Add Goldmark as the new default markdown handler This commit adds the fast and CommonMark compliant Goldmark as the new default markdown handler in Hugo. If you want to continue using BlackFriday as the default for md/markdown extensions, you can use this configuration: ```toml [markup] defaultMarkdownHandler="blackfriday" ``` Fixes #5963 Fixes #1778 Fixes #6355 --- hugolib/testhelpers_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hugolib/testhelpers_test.go') diff --git a/hugolib/testhelpers_test.go b/hugolib/testhelpers_test.go index 08949a1fd..d861a5e09 100644 --- a/hugolib/testhelpers_test.go +++ b/hugolib/testhelpers_test.go @@ -743,7 +743,7 @@ func (th testHelper) assertFileContent(filename string, matches ...string) { content := readDestination(th, th.Fs, filename) for _, match := range matches { match = th.replaceDefaultContentLanguageValue(match) - th.Assert(strings.Contains(content, match), qt.Equals, true, qt.Commentf(content)) + th.Assert(strings.Contains(content, match), qt.Equals, true, qt.Commentf(match+" not in: \n"+content)) } } @@ -755,7 +755,7 @@ func (th testHelper) assertFileContentRegexp(filename string, matches ...string) r := regexp.MustCompile(match) matches := r.MatchString(content) if !matches { - fmt.Println(content) + fmt.Println(match+":\n", content) } th.Assert(matches, qt.Equals, true) } -- cgit v1.2.3