ElyMark: the probe also requires each task box drawn (R2.14)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 09:01:13 -04:00
1 parent 8a7e45d901
commit b3fc6c9c82
3 files changed
+7 -3

No files matched your search

+2 -1
View File
@@ -63,7 +63,8 @@ const CHECK: &str = r#"
const line = range.getClientRects()[0];
const top = item.getBoundingClientRect().top + parseFloat(mark.marginTop);
const size = parseFloat(getComputedStyle(item).fontSize);
return [parseFloat(mark.width) / size, parseFloat(mark.height) / size, top + parseFloat(mark.height) / 2 - (line.top + line.height / 2)];
const drawn = mark.content !== 'none' && parseFloat(mark.borderTopWidth) > 0 && mark.borderTopStyle !== 'none';
return [parseFloat(mark.width) / size, parseFloat(mark.height) / size, top + parseFloat(mark.height) / 2 - (line.top + line.height / 2), drawn];
}),
cells: view.querySelectorAll('.milkdown td').length,
notes: view.querySelectorAll('[data-type="footnote_definition"]').length,