From 8a9f3ec4eefaf7733724e39c93ffb146815d55e8 Mon Sep 17 00:00:00 2001 From: John Sorial <30316353+John98Zakaria@users.noreply.github.com> Date: Mon, 22 Jan 2024 11:04:22 +0100 Subject: [PATCH] fix: Latex line highlighting for vector equations (#1255) --- packages/client/builtin/KaTexBlockWrapper.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/builtin/KaTexBlockWrapper.vue b/packages/client/builtin/KaTexBlockWrapper.vue index 05aa994642..091e645e60 100644 --- a/packages/client/builtin/KaTexBlockWrapper.vue +++ b/packages/client/builtin/KaTexBlockWrapper.vue @@ -74,7 +74,7 @@ onMounted(() => { // For each row we extract the individual equation rows const equationRowsOfEachParent = Array.from(equationParents) - .map(item => Array.from(item.querySelectorAll('.vlist-t > .vlist-r > .vlist > span > .mord'))) + .map(item => Array.from(item.querySelectorAll(':scope > .vlist-t > .vlist-r > .vlist > span > .mord'))) // This list maps rows from different parents to line them up const lines: Element[][] = [] for (const equationRowParent of equationRowsOfEachParent) {