mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
@@ -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.")
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user