0.2.88
This commit is contained in:
1 parent
df403c0aa7
commit
9e133628e5
17 files changed
+270
-34
No files matched your search
@@ -51,3 +51,11 @@ html = renderMarkdown('Hello @a[1]\\x and @<f>&" but not @a[1]\\xy');
|
||||
assert.equal((html.match(/class="markdown-mention"/g)||[]).length, 2, 'escaped nicknames');
|
||||
assert.doesNotMatch(html, /<f>/, 'no raw HTML from nickname');
|
||||
console.log('PASS: special-character nicknames remain escaped');
|
||||
|
||||
html = renderMarkdown('- [ ] Open\n- [x] Done\n- [~] Cancelled\n - [~] Nested cancelled');
|
||||
has(/task-list-item--cancelled/, html, 'cancelled task has its own class');
|
||||
assert.equal((html.match(/task-list-item--cancelled/g) || []).length, 2, 'both cancelled tasks recognized');
|
||||
has(/data-source-line="3" disabled aria-label="Cancelled task"/, html, 'cancelled checkbox cannot be clicked');
|
||||
has(/data-source-prefix="- \[~\] "/, html, 'cancelled markdown marker preserved');
|
||||
has(/data-source-line="1"(?! disabled)/, html, 'open task remains interactive');
|
||||
console.log('PASS: cancelled tasks are disabled and retain their source markers');
|
||||
Reference in new issue
Block a user