Old Paragraph Spacing
Some fellow Discord community members mentioned how they preferred the old paragraph spacing, so I made this to help them restore the previous AI Dungeon linebreak behavior. Although I like the new spacing myself, other opinions are valid too! Simply click play and it'll work. But if you're curious, here's what's going on behind the scenes: // Output const modifier = (text) => { text = text.replace(/\n\n+/g, ((seen = false) => (m, i, s) => ( ((i === 0) || ((i + m.length) === s.length)) ? m : seen ? "\n" : (seen = true, m) ))()); return { text }; }; modifier(text);
