From ed21b24a5decf063a4232972d29853c3b654901f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 16 Oct 2026 18:01:55 -1000 Subject: Link the urls and addresses in angle brackets --- tests/extensions/test-about-render.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/extensions/test-about-render.lua b/tests/extensions/test-about-render.lua index eb62a89..601d0dc 100644 --- a/tests/extensions/test-about-render.lua +++ b/tests/extensions/test-about-render.lua @@ -153,6 +153,14 @@ h.contains("an absolute link is left alone", out, "href='https://example.com/x'" out = render("README.md", "[mail](mailto:a@example.com)") h.contains("a mailto link renders as an anchor", out, "mail") +out = render("README.md", "see or ") +h.contains("a url in angle brackets links", out, "https://example.com/a?b=1") +h.contains("an address in angle brackets links", out, "me@example.com") + +out = render("README.md", " and ") +h.excludes("an unsafe autolink renders no anchor", out, "