Skip to content

Commit 8a9f3ec

Browse files
fix: Latex line highlighting for vector equations (#1255)
1 parent 8382739 commit 8a9f3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/builtin/KaTexBlockWrapper.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ onMounted(() => {
7474
7575
// For each row we extract the individual equation rows
7676
const equationRowsOfEachParent = Array.from(equationParents)
77-
.map(item => Array.from(item.querySelectorAll('.vlist-t > .vlist-r > .vlist > span > .mord')))
77+
.map(item => Array.from(item.querySelectorAll(':scope > .vlist-t > .vlist-r > .vlist > span > .mord')))
7878
// This list maps rows from different parents to line them up
7979
const lines: Element[][] = []
8080
for (const equationRowParent of equationRowsOfEachParent) {

0 commit comments

Comments
 (0)