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