this.toggleIndex()}">
${unsafeSVG(toggleIcon)}
this.checkIndexVisibility()}">
`
}
private renderIndex() {
const index: [HTMLElement, string][] = this.headings.map(heading => [
heading.cloneNode(true) as HTMLElement,
heading.id
])
index.forEach(([heading]: [HTMLElement, string]) =>
heading.removeAttribute('id')
)
return index.map(
([heading, id]: [HTMLElement, string]) =>
html`