aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-08-16 15:55:03 +0200
committerBjørn Erik Pedersen <[email protected]>2019-11-06 19:09:08 +0100
commit5f6b6ec68936ebbbf590894c02a1a3ecad30735f (patch)
treef6c91e225a3f24f51af1bde5cfb5b88515d0665d /hugolib/site_test.go
parent366ee4d8da1c2b0c1751e9bf6d54638439735296 (diff)
downloadhugo-5f6b6ec68936ebbbf590894c02a1a3ecad30735f.tar.gz
hugo-5f6b6ec68936ebbbf590894c02a1a3ecad30735f.zip
Prepare for Goldmark
This commmit prepares for the addition of Goldmark as the new Markdown renderer in Hugo. This introduces a new `markup` package with some common interfaces and each implementation in its own package. See #5963
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r--hugolib/site_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go
index 6cbcbf8d5..995664da4 100644
--- a/hugolib/site_test.go
+++ b/hugolib/site_test.go
@@ -1018,6 +1018,7 @@ func TestRefLinking(t *testing.T) {
}
func checkLinkCase(site *Site, link string, currentPage page.Page, relative bool, outputFormat string, expected string, t *testing.T, i int) {
+ t.Helper()
if out, err := site.refLink(link, currentPage, relative, outputFormat); err != nil || out != expected {
t.Fatalf("[%d] Expected %q from %q to resolve to %q, got %q - error: %s", i, link, currentPage.Path(), expected, out, err)
}