Improve Keyword rendering
CI / check (push) Has been cancelled

This commit is contained in:
2026-07-25 16:08:21 +02:00
parent b35c88b451
commit 444d26fd47
5 changed files with 54 additions and 29 deletions
+6 -4
View File
@@ -100,10 +100,12 @@ describe("splitting choice abilities", () => {
expect(group).toBeTruthy();
expect(group.size).toBeGreaterThan(1);
// Options print as plain text: GW's ^^keyword^^ / **emphasis** markers
// are resolved, not passed through as punctuation.
for (const text of group.values()) {
expect(JSON.stringify(text)).not.toMatch(/\^\^|\*\*/);
// The option text keeps GW's ^^keyword^^ / **emphasis** markers for the
// renderer to format; only the row titles are plain text, since those
// render as-is.
expect([...group.values()].join("\n")).toMatch(/\^\^/);
for (const name of group.keys()) {
expect(name).not.toMatch(/\^\^|\*\*/);
}
});
});