fix(funbox): text altering funboxes not working with wikipedia or poetry

This commit is contained in:
Miodec 2023-11-09 13:27:04 +00:00
parent 9b8c452064
commit 0ccf7ea920

View file

@ -478,8 +478,12 @@ export async function generateWords(
for (let i = 0; i < funboxSection.length; i++) {
indexes.push(i);
}
const ret = [];
for (const word of funboxSection) {
ret.push(applyFunboxesToWord(word));
}
return {
words: funboxSection,
words: ret,
sectionIndexes: indexes,
};
}