I've been trying to make my p5.js program try to read a text file and notice when it hits a new paragraph, but I'm not exactly sure how to do it. for example, right now I'm using 7 paragraphs of just Lorem Ipsum and each paragraph is divided by an entire empty line. how could I make p5.js notice this empty line and count the paragraphs?
i've already tried detecting if there was at least 2 spaces but i'm not sure if I just did it wrong or it doesn't work.