mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 16:22:42 +00:00
Trim space off of ToC entries.
This commit is contained in:
@@ -70,7 +70,7 @@ const getTOC = ()=>{
|
|||||||
const ToCExclude = getComputedStyle(heading).getPropertyValue('--TOC');
|
const ToCExclude = getComputedStyle(heading).getPropertyValue('--TOC');
|
||||||
if(ToCExclude != 'exclude') {
|
if(ToCExclude != 'exclude') {
|
||||||
if(!isNaN(onPage)) {
|
if(!isNaN(onPage)) {
|
||||||
const headingText = heading.innerText;
|
const headingText = heading.innerText.trim();
|
||||||
if(heading.tagName == 'H1') {
|
if(heading.tagName == 'H1') {
|
||||||
add1(headingText, onPage);
|
add1(headingText, onPage);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user