From e6fbc339820c5cf46d94cb5a636796a8b6287ff3 Mon Sep 17 00:00:00 2001 From: Taylor Monacelli Date: Fri, 16 Aug 2024 20:53:08 -0700 Subject: [PATCH] Add test that reveals we have a big problem --- cmd/e2e_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/e2e_test.go b/cmd/e2e_test.go index 3f69a9f..c3ca485 100644 --- a/cmd/e2e_test.go +++ b/cmd/e2e_test.go @@ -71,6 +71,13 @@ qfc Chocolate Ice Cream - Google Search](https://www.google.com/search?q=qfc+Cho `, expected: `[Item media 5 screenshot](https://lh3.googleusercontent.com/ADTbiH2FM2SYb3PbxWeAI0v_-FYVMFt_6hJ3sabl_gVDadugPc5FX55USRMRIo50uvD0gwKqIJu-kfXWJHRiQV6SsTE=s1280-w1280-h800)`, }, + { + name: "Urls in code blocks with variable substitution are not adjusted", + input: `` + "``` bash" + ` +https://github.com/gkwa/${version}/test.bin` + "```" + ``, + expected: `` + "``` bash" + ` +https://github.com/gkwa/${version}/test.bin` + "```" + ``, + }, } for _, tc := range testCases {