diff --git a/_test/extra.txt b/_test/extra.txt index c7a4be7..d500717 100644 --- a/_test/extra.txt +++ b/_test/extra.txt @@ -76,3 +76,21 @@ place where everything breaks") place where everything breaks">This link won't be rendered correctly
//= = = = = = = = = = = = = = = = = = = = = = = =// + + + +7 +//- - - - - - - - -// +[](./target.md) +//- - - - - - - - -// + +//= = = = = = = = = = = = = = = = = = = = = = = =// + + + +8 +//- - - - - - - - -// +[]() +//- - - - - - - - -// + +//= = = = = = = = = = = = = = = = = = = = = = = =// \ No newline at end of file diff --git a/commonmark_test.go b/commonmark_test.go index bd367e0..e1a2d1b 100644 --- a/commonmark_test.go +++ b/commonmark_test.go @@ -42,26 +42,3 @@ func TestSpec(t *testing.T) { )) testutil.DoTestCases(markdown, cases, t) } - -func TestSpec_EdgeCase_LinkWithEmptyText(t *testing.T) { - // TODO: maybe this test cases will be part of the official spec in the future. - // check: https://github.com/commonmark/commonmark-spec/issues/636 - - cases := []testutil.MarkdownTestCase{ - testutil.MarkdownTestCase{ - No: -1, - Markdown: "[](./target.md)", - Expected: "", - }, - testutil.MarkdownTestCase{ - No: -1, - Markdown: "[]()", - Expected: "", - }, - } - markdown := New(WithRendererOptions( - html.WithXHTML(), - html.WithUnsafe(), - )) - testutil.DoTestCases(markdown, cases, t) -}