Fix more various small bugs
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-09 21:52:20 +03:00
parent 734c6128d3
commit e06f7177dd
19 changed files with 270 additions and 32 deletions

View File

@@ -86,4 +86,18 @@ describe("removeMarkdown()", () => {
removeMarkdown("Check out [the site](https://example.com) today"),
).toBe("Check out the site today");
});
test("Keeps non-header # characters", () => {
expect(removeMarkdown("Showdown #1 starts now")).toBe(
"Showdown #1 starts now",
);
});
test("Leaves space-flanked asterisks intact instead of mangling them", () => {
expect(removeMarkdown("** bold text **")).toBe("** bold text **");
});
test("Strips emphasis with inner spaces", () => {
expect(removeMarkdown("*a b c*")).toBe("a b c");
});
});