Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/config_test.go')
-rw-r--r--hugolib/config_test.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/hugolib/config_test.go b/hugolib/config_test.go
index 222568b7c..882d83c8d 100644
--- a/hugolib/config_test.go
+++ b/hugolib/config_test.go
@@ -756,3 +756,29 @@ theme_param="themevalue2"
})
}
+
+func TestInvalidDefaultMarkdownHandler(t *testing.T) {
+ t.Parallel()
+
+ files := `
+-- config.toml --
+[markup]
+defaultMarkdownHandler = 'blackfriday'
+-- content/_index.md --
+## Foo
+-- layouts/index.html --
+{{ .Content }}
+
+`
+
+ b, err := NewIntegrationTestBuilder(
+ IntegrationTestConfig{
+ T: t,
+ TxtarString: files,
+ },
+ ).BuildE()
+
+ b.Assert(err, qt.IsNotNil)
+ b.Assert(err.Error(), qt.Contains, "Configured defaultMarkdownHandler \"blackfriday\" not found. Did you mean to use goldmark? Blackfriday was removed in Hugo v0.100.0.")
+
+}