goldmark/extension/typographer_test.go
2019-11-29 13:39:42 -06:00

21 lines
389 B
Go

package extension
import (
"testing"
"github.com/yuin/goldmark"
"github.com/yuin/goldmark/renderer/html"
"github.com/yuin/goldmark/testutil"
)
func TestTypographer(t *testing.T) {
markdown := goldmark.New(
goldmark.WithRendererOptions(
html.WithUnsafe(),
),
goldmark.WithExtensions(
Typographer,
),
)
testutil.DoTestCaseFile(markdown, "_test/typographer.txt", t)
}