| 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 TestTaskList(t *testing.T) { |
| 12 | markdown := goldmark.New( |
| 13 | goldmark.WithRendererOptions( |
| 14 | html.WithUnsafe(), |
| 15 | ), |
| 16 | goldmark.WithExtensions( |
| 17 | TaskList, |
| 18 | ), |
| 19 | ) |
| 20 | testutil.DoTestCaseFile(markdown, "_test/tasklist.txt", t, testutil.ParseCliCaseArg()...) |
| 21 | } |