1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 05:09:41 +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:
Aleksey Solovyev 2022-11-29 14:54:11 +03:00
parent 1c3ada993e
commit 3ca4a175e9

View file

@ -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}`,
}); });