Update editor, themes, menus, backgrounds, and release tooling
This commit is contained in:
@@ -21,3 +21,13 @@ test("bare and angle links omit prose punctuation and preserve balanced parenthe
|
||||
const source = 'Go to https://example.com/a_(b). Next (<https://example.org>). Mail <mailto:[email protected]>.';
|
||||
assert.deepEqual(documentLinks(source).map(link => link.target), ["https://example.com/a_(b)", "https://example.org", "mailto:[email protected]"]);
|
||||
});
|
||||
|
||||
test("edit link selects only its destination, preserving labels, titles, brackets, and spacing", () => {
|
||||
const source = '[Local](<notes/two words.md> "Title") and [Web](https://example.com/a_\\(b\\)) and [[ Another note#Heading |Alias]] and <https://example.org>.';
|
||||
const links = documentLinks(source);
|
||||
assert.deepEqual(links.map(link => source.slice(link.targetFrom, link.targetTo)), ["notes/two words.md", "https://example.com/a_\\(b\\)", "Another note#Heading", "https://example.org"]);
|
||||
});
|
||||
|
||||
test("wiki image embeds do not expose document actions", () => {
|
||||
assert.deepEqual(documentLinks('![[image.png]] [[note|label]]').map(link => link.target), ["note"]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user