2024-11-04 20:39:31 +09:00
|
|
|
// This preamble is unnecessary after #16805
|
|
|
|
|
const preamble = "a 字 a 字 a 字";
|
|
|
|
|
const code = `${preamble}\n${"葛\u{e0100}\n".repeat(3)}${"𠮷\n".repeat(2)}終\n`;
|
2026-10-04 12:20:28 +09:00
|
|
|
// Once browser behavior is standardized across browsers, comment out output and switch to the output below.
|
|
|
|
|
// const output = `${preamble}${"葛\u{e0100}".repeat(3)}${"𠮷".repeat(2)}終\n`;
|
2024-11-04 20:39:31 +09:00
|
|
|
|
|
|
|
|
runFormatTest(
|
|
|
|
|
{
|
|
|
|
|
importMeta: import.meta,
|
|
|
|
|
snippets: [
|
|
|
|
|
{
|
|
|
|
|
code,
|
|
|
|
|
name: "Make sure non-BMP CJK characters are treated as CJK",
|
2026-10-04 12:20:28 +09:00
|
|
|
output: code,
|
2024-11-04 20:39:31 +09:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
["markdown"],
|
|
|
|
|
{ proseWrap: "never" },
|
|
|
|
|
);
|