0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 07:12:39 +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){
@@ -95,7 +95,7 @@ module.exports = function(props){
const markdown = _.reduce(TOC, (r, g1, idx1)=>{
r.push(ToCIterate(g1).join('\n'));
return r;
}, []).join('\n');
}, []).join('\n').replace('\n\n', '\n');
return dedent`
{{toc,wide