Fix removeMarkdown stripping inline link text
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle
2026-06-07 22:02:33 +03:00
parent 945544153a
commit 76654c87bd
2 changed files with 7 additions and 1 deletions

View File

@@ -74,4 +74,10 @@ describe("removeMarkdown()", () => {
test("Strips HTML tags and markdown emphasis", () => {
expect(removeMarkdown("<p>Hello **world**!</p>")).toBe("Hello world!");
});
test("Keeps the link text of inline links", () => {
expect(
removeMarkdown("Check out [the site](https://example.com) today"),
).toBe("Check out the site today");
});
});