shithub: hell

Download patch

ref: 8c33a464e4b531bae179ccca131243f4c23ac4d5
parent: 23368b7c2f56121f9658b2f7431ed693ca6465c8
author: fops <billgates@cock.li>
date: Wed Oct 8 10:09:43 EDT 2025

Add test case to cover missing branch

--- a/renderer_test.go
+++ b/renderer_test.go
@@ -32,6 +32,8 @@
 		{"<pre>hello &amp; world</pre>", "hello & world"},
 		// Mentions
 		{"<p>hello <a href=\"https://example.com\" class=\"mention\"are usernames irrelevant</a>world</p>", "hello world"}, // TODO: Verify that this is correct
+		// a without href
+		{"<p>hello <a>world</a></p>", "hello [1]"}, // TODO: this is probably wrong
 	}
 	for _, param := range parameters {
 		sf := &StatusFormatter{
--