Skip to content

Commit

Permalink
fix: Latex line highlighting for vector equations (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
John98Zakaria committed Jan 22, 2024
1 parent 8382739 commit 8a9f3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/builtin/KaTexBlockWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8a9f3ec

Please sign in to comment.