Hi markman641,
thank you, that one-liner style makes sense.
I am just thinking where and how to implement this.
If we have an “every x words” condition then I would ask myself where the first ad should start and whether to consider only paragraphs or also other elements, like quotes.
Or we have a “minimum paragraph” length before injecting something, but that would ignore all one-liners.
Or a condition like “min. x words before next ad” in combination with the existing settings, but would we omit an ad that is coming up earlier or push it to a later paragraph?
Not sure if this makes sense. My task is to find an implementation that is most flexible for most users and use cases.
Let me know if you have any additional ideas about that.
Thanks,
Thomas