Skip to content

Commit

Permalink
chore: refactor extension method names
Browse files Browse the repository at this point in the history
  • Loading branch information
bowman2001 committed May 1, 2024
1 parent b002118 commit 9fc07f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extras/inline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

func buildGoldmarkWithInlineTag(tag xast.InlineTagType) goldmark.Markdown {
return goldmark.New(goldmark.WithExtensions(New(InlineTagConfig{InlineTagType: tag})))
return goldmark.New(goldmark.WithExtensions(New(Config{InlineTagType: tag})))
}

var markdown = goldmark.New()
Expand Down Expand Up @@ -60,7 +60,7 @@ This formula contains one superscript: f(x) = x^2^ .`

func TestSubscript(t *testing.T) {
var markdown = goldmark.New(
goldmark.WithExtensions(New(InlineTagConfig{
goldmark.WithExtensions(New(Config{
InlineTagType: xast.Subscript}), extension.Strikethrough))
testutil.DoTestCaseFile(markdown, "_test/subscript.txt", t, testutil.ParseCliCaseArg()...)
}
Expand Down

0 comments on commit 9fc07f3

Please sign in to comment.