Update the browser, editor, settings, and installer

This commit is contained in:
Knotty Wyvern
2026-10-12 14:46:21 -07:00
parent 909894b9c8
commit f6eaa52949
163 changed files with 146260 additions and 534 deletions
+15
View File
@@ -54,3 +54,18 @@ test("clear preserves structure; delete removes whole rows/columns or shifts par
assert.ok(header.startsWith("| one | two | three |\r\n| --- | :---: | ---: |"));
assert.equal(deleteTableCells(source, { anchor: { row: 0, column: 0 }, head: { row: 2, column: 2 } }), "\r\n\r\nTail");
});
test("deleting the empty columns shown on the card removes their structure", () => {
const emptyColumns = "| Column 2 | Column 1 | | | | |\n| --- | --- | --- | --- | --- | --- |\n| 2cm | Value | | | | |\n| text | 123 | | | | |\n| | | | | | |\n| | | | | | |\n\nAfter.";
const result = deleteTableCells(emptyColumns, { anchor: { row: 4, column: 5 }, head: { row: 0, column: 3 } });
assert.equal(parseMarkdownTable(result)?.columns, 3);
assert.equal(parseMarkdownTable(result)?.rows.length, 6);
assert.ok(result.includes("| 2cm | Value | |"));
assert.ok(result.endsWith("\n\nAfter."));
});
test("deleting the last body rows retains a valid header and alignment", () => {
const result = deleteTableCells(source, { anchor: { row: 2, column: 2 }, head: { row: 1, column: 0 } });
assert.equal(result, "| A | B | C |\r\n| --- | :---: | ---: |\r\n\r\nTail");
assert.equal(parseMarkdownTable(result)?.rows.length, 2);
});