From 93c3c153f0fb88930e37d1d829c1d26f0a4fb4e1 Mon Sep 17 00:00:00 2001 From: Daenney Date: Sun, 27 Apr 2025 13:36:27 +0200 Subject: [chore] Rewrite all remaining Github links --- internal/text/markdown_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/text/markdown_test.go') diff --git a/internal/text/markdown_test.go b/internal/text/markdown_test.go index 923487978..5048fab87 100644 --- a/internal/text/markdown_test.go +++ b/internal/text/markdown_test.go @@ -75,9 +75,9 @@ const ( mdWithAsciiHeartExpected = "

hello <3 old friend <3 i loved u </3 :(( you stole my heart

" mdWithStrikethrough = "I have ~~mdae~~ made an error" mdWithStrikethroughExpected = "

I have mdae made an error

" - mdWithLink = "Check out this code, i heard it was written by a sloth https://github.com/superseriousbusiness/gotosocial" - mdWithLinkExpected = "

Check out this code, i heard it was written by a sloth https://github.com/superseriousbusiness/gotosocial

" - mdWithLinkBasicExpected = "Check out this code, i heard it was written by a sloth https://github.com/superseriousbusiness/gotosocial" + mdWithLink = "Check out this code, i heard it was written by a sloth https://codeberg.org/superseriousbusiness/gotosocial" + mdWithLinkExpected = "

Check out this code, i heard it was written by a sloth https://codeberg.org/superseriousbusiness/gotosocial

" + mdWithLinkBasicExpected = "Check out this code, i heard it was written by a sloth https://codeberg.org/superseriousbusiness/gotosocial" mdObjectInCodeBlock = "@foss_satan@fossbros-anonymous.io this is how to mention a user\n```\n@the_mighty_zork hey bud! nice #ObjectOrientedProgramming software you've been writing lately! :rainbow:\n```\nhope that helps" mdObjectInCodeBlockExpected = "

@foss_satan this is how to mention a user

@the_mighty_zork hey bud! nice #ObjectOrientedProgramming software you've been writing lately! :rainbow:\n

hope that helps

" // Hashtags can be italicized but only with *, not _. @@ -125,7 +125,7 @@ func (suite *MarkdownTestSuite) TestParseWithHashtag() { suite.Equal(withHashtagExpected, formatted.HTML) } -// Regressiom test for https://github.com/superseriousbusiness/gotosocial/issues/3618 +// Regressiom test for https://codeberg.org/superseriousbusiness/gotosocial/issues/3618 func (suite *MarkdownTestSuite) TestParseWithTamilHashtag() { formatted := suite.FromMarkdown(withTamilHashtag) suite.Equal(withTamilHashtagExpected, formatted.HTML) -- cgit v1.2.3