summaryrefslogtreecommitdiff
path: root/internal/text
diff options
context:
space:
mode:
Diffstat (limited to 'internal/text')
-rw-r--r--internal/text/markdown.go2
-rw-r--r--internal/text/plain.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/text/markdown.go b/internal/text/markdown.go
index 7e75f2898..163996d77 100644
--- a/internal/text/markdown.go
+++ b/internal/text/markdown.go
@@ -139,7 +139,7 @@ func (f *Formatter) fromMarkdown(
},
// Turns URLs into links.
extension.NewLinkify(
- extension.WithLinkifyURLRegexp(regexes.LinkScheme),
+ extension.WithLinkifyURLRegexp(regexes.URLLike),
),
extension.Strikethrough,
),
diff --git a/internal/text/plain.go b/internal/text/plain.go
index ee4947bf7..17e2800ec 100644
--- a/internal/text/plain.go
+++ b/internal/text/plain.go
@@ -168,7 +168,7 @@ func (f *Formatter) fromPlain(
},
// Turns URLs into links.
extension.NewLinkify(
- extension.WithLinkifyURLRegexp(regexes.LinkScheme),
+ extension.WithLinkifyURLRegexp(regexes.URLLike),
),
),
)