diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-02 08:31:23 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-02 14:12:23 +0100 |
commit | 40a092b0687d44ecb53ef1fd53001a6299345780 (patch) | |
tree | 2a5047d0affd152da90a8e3105fa12ad470989b2 /markup/markup_config/config_test.go | |
parent | d534ce9424c952800dfb26c2faff2d47e9597cad (diff) |
markup: Reimplement pygmentsCodefencesGuessSyntax
Fixes #6565
Diffstat (limited to 'markup/markup_config/config_test.go')
-rw-r--r-- | markup/markup_config/config_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/markup/markup_config/config_test.go b/markup/markup_config/config_test.go index 726d1146b..22f0ab1d4 100644 --- a/markup/markup_config/config_test.go +++ b/markup/markup_config/config_test.go @@ -55,7 +55,7 @@ func TestConfig(t *testing.T) { v.Set("footnoteAnchorPrefix", "myprefix") v.Set("footnoteReturnLinkContents", "myreturn") v.Set("pygmentsStyle", "hugo") - + v.Set("pygmentsCodefencesGuessSyntax", true) conf, err := Decode(v) c.Assert(err, qt.IsNil) @@ -64,6 +64,7 @@ func TestConfig(t *testing.T) { 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) }) } |