chore: add per-level indentation to super note table of contents list
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user