0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-27 20:23:08 +00:00

fix module.exports

This commit is contained in:
Víctor Losada Hernández
2026-01-20 19:56:37 +01:00
parent bfe2c11548
commit 0d6c3c7e33
90 changed files with 148 additions and 194 deletions

View File

@@ -47,7 +47,7 @@ const getTOC = (pages)=>{
return res;
};
module.exports = function(props){
export default function(props){
const pages = props.brew.text.split('\\page');
const TOC = getTOC(pages);
const markdown = _.reduce(TOC, (r, g1, idx1)=>{