mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-09 12:46:10 -05:00
Fix more various small bugs
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user