summaryrefslogtreecommitdiffstats
path: root/markup/markup_config/config_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-05-28 11:01:47 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-05-29 11:50:58 +0200
commit0f8dc47037f59156c04540d97ed1b588e6bc1164 (patch)
tree78d76bb4d52b2f35b609013fde6ec4f5e19730c8 /markup/markup_config/config_test.go
parent3b478f50b7408ad78d085fa6dbc3c7a683c9d943 (diff)
Remove Blackfriday markdown engine
It has been deprecated for a long time, its v1 version is not maintained anymore, and there are many known issues. Goldmark should be a mature replacement by now. Closes #9934
Diffstat (limited to 'markup/markup_config/config_test.go')
-rw-r--r--markup/markup_config/config_test.go34
1 files changed, 0 insertions, 34 deletions
diff --git a/markup/markup_config/config_test.go b/markup/markup_config/config_test.go
index 06bd0b11c..a320e6912 100644
--- a/markup/markup_config/config_test.go
+++ b/markup/markup_config/config_test.go
@@ -45,7 +45,6 @@ func TestConfig(t *testing.T) {
c.Assert(err, qt.IsNil)
c.Assert(conf.Goldmark.Renderer.Unsafe, qt.Equals, true)
- c.Assert(conf.BlackFriday.Fractions, qt.Equals, true)
c.Assert(conf.Goldmark.Parser.Attribute.Title, qt.Equals, true)
c.Assert(conf.Goldmark.Parser.Attribute.Block, qt.Equals, false)
@@ -53,37 +52,4 @@ func TestConfig(t *testing.T) {
c.Assert(conf.AsciidocExt.Extensions[0], qt.Equals, "asciidoctor-html5s")
})
- c.Run("legacy", func(c *qt.C) {
- c.Parallel()
- v := config.New()
-
- v.Set("blackfriday", map[string]any{
- "angledQuotes": true,
- })
-
- v.Set("footnoteAnchorPrefix", "myprefix")
- v.Set("footnoteReturnLinkContents", "myreturn")
- v.Set("pygmentsStyle", "hugo")
- v.Set("pygmentsCodefencesGuessSyntax", true)
-
- v.Set("markup", map[string]any{
- "goldmark": map[string]any{
- "parser": map[string]any{
- "attribute": false, // Was changed to a struct in 0.81.0
- },
- },
- })
- conf, err := Decode(v)
-
- c.Assert(err, qt.IsNil)
- c.Assert(conf.BlackFriday.AngledQuotes, qt.Equals, true)
- c.Assert(conf.BlackFriday.FootnoteAnchorPrefix, qt.Equals, "myprefix")
- c.Assert(conf.BlackFriday.FootnoteReturnLinkContents, qt.Equals, "myreturn")
- c.Assert(conf.Highlight.Style, qt.Equals, "hugo")
- c.Assert(conf.Highlight.CodeFences, qt.Equals, true)
- c.Assert(conf.Highlight.GuessSyntax, qt.Equals, true)
- c.Assert(conf.Goldmark.Parser.Attribute.Title, qt.Equals, false)
- c.Assert(conf.Goldmark.Parser.Attribute.Block, qt.Equals, false)
-
- })
}