diff --git a/extra_test.go b/extra_test.go index bddfe3f..6775ec2 100644 --- a/extra_test.go +++ b/extra_test.go @@ -71,17 +71,29 @@ func (s *myIDs) Put(value []byte) { } func TestAutogeneratedIDs(t *testing.T) { - ctx := parser.NewContext(parser.WithIDs(&myIDs{})) + ctx := parser.NewContext() markdown := New(WithParserOptions(parser.WithAutoHeadingID())) - source := []byte("# Title1\n## Title2") + + source := []byte("## Não há quem goste de dor") var b bytes.Buffer err := markdown.Convert(source, &b, parser.WithContext(ctx)) if err != nil { t.Error(err.Error()) } - if b.String() != `