mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-18 20:59:42 +02:00
fix: trim content of TOC elements
This is necessary in order to avoid creating <br> elements in the table of contens elements.
This commit is contained in:
parent
1c3ada993e
commit
3ca4a175e9
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ export default class TableOfContent {
|
||||||
|
|
||||||
const linkWrapper = $.make('li', this.CSS.tocElementItem);
|
const linkWrapper = $.make('li', this.CSS.tocElementItem);
|
||||||
const linkBlock = $.make('a', null, {
|
const linkBlock = $.make('a', null, {
|
||||||
innerText: tag.innerText,
|
innerText: tag.innerText.trim(),
|
||||||
href: `${linkTarget}`,
|
href: `${linkTarget}`,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue