Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 166c12d

Browse files
josephperrottjelbourn
authored andcommitted
Fix table of contents having the word "link" on IE and Edge (#253)
1 parent 047b733 commit 166c12d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/shared/table-of-contents/table-of-contents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class TableOfContents implements OnInit {
105105
if (headers.length) {
106106
for (const header of headers) {
107107
// remove the 'link' icon name from the inner text
108-
const name = header.innerText.replace(/^link/, '');
108+
const name = header.innerText.trim().replace(/^link/, '');
109109
const {top} = header.getBoundingClientRect();
110110
links.push({
111111
name,

0 commit comments

Comments
 (0)