1 package extension 2 3 import ( 4 "testing" 5 6 "github.com/yuin/goldmark" 7 "github.com/yuin/goldmark/renderer/html" 8 "github.com/yuin/goldmark/testutil" 9 ) 10 11 func TestTypographer(t *testing.T) { 12 markdown := goldmark.New( 13 goldmark.WithRendererOptions( 14 html.WithUnsafe(), 15 ), 16 goldmark.WithExtensions( 17 Typographer, 18 ), 19 ) 20 testutil.DoTestCaseFile(markdown, "_test/typographer.txt", t, testutil.ParseCliCaseArg()...) 21 } 22