ifcurl/forgejo
Bruno Postle 995218bb4e Add Go tests for ifc_url.go goldmark extension
7 tests in forgejo/modules/markup/markdown/ifc_url_test.go covering:
link form, bare URL, bare URL with underscores (sibling-node reassembly),
disabled when no service URL configured, HTML escaping, non-ifc links
unchanged, and inline-among-text placement.

Tests use goldmark.New() directly — no Forgejo DB/git test infrastructure
needed. Only dependencies are setting.IfcURL (ours) and goldmark (stable).
File lives in the same package as ifc_url.go and is part of the patch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 07:51:46 +01:00
..
custom/public/assets viewer: extract URL logic to viewer-url.js, add JS tests 2026-04-24 07:31:19 +01:00
modules/markup/markdown Add Go tests for ifc_url.go goldmark extension 2026-04-24 07:51:46 +01:00
templates/custom Deploy viewer as Forgejo static file; update footer.tmpl URL 2026-04-23 20:48:36 +01:00