0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 20:42:44 +00:00

That was the wrong way. Lets try this ugly fix.

This commit is contained in:
David Bolack
2024-09-07 20:40:29 -05:00
parent b0dffc6df1
commit 758c2799a1

View File

@@ -87,7 +87,7 @@ const ToCIterate = (entries, curDepth=0)=>{
} }
}); });
} }
return toc.length > 0 ? toc : null; return toc;
}; };
module.exports = function(props){ module.exports = function(props){
@@ -95,7 +95,7 @@ module.exports = function(props){
const markdown = _.reduce(TOC, (r, g1, idx1)=>{ const markdown = _.reduce(TOC, (r, g1, idx1)=>{
r.push(ToCIterate(g1).join('\n')); r.push(ToCIterate(g1).join('\n'));
return r; return r;
}, []).join('\n'); }, []).join('\n').replace('\n\n', '\n');
return dedent` return dedent`
{{toc,wide {{toc,wide