chore: add per-level indentation to super note table of contents list

This commit is contained in:
Aman Harwara
2023-10-19 13:39:15 +05:30
parent c3aa5cf9f9
commit 2d4cf6af92
2 changed files with 33 additions and 19 deletions

View File

@@ -255,3 +255,7 @@ export function getScrollParent(node: HTMLElement | null): HTMLElement | null {
return getScrollParent(node.parentElement)
}
}
export function remToPx(rem: number) {
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize)
}