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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user