mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
21 lines
371 B
Go
21 lines
371 B
Go
package extension
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/yuin/goldmark"
|
|
"github.com/yuin/goldmark/renderer/html"
|
|
"github.com/yuin/goldmark/testutil"
|
|
)
|
|
|
|
func TestTable(t *testing.T) {
|
|
markdown := goldmark.New(
|
|
goldmark.WithRendererOptions(
|
|
html.WithUnsafe(),
|
|
),
|
|
goldmark.WithExtensions(
|
|
Table,
|
|
),
|
|
)
|
|
testutil.DoTestCaseFile(markdown, "_test/table.txt", t)
|
|
}
|