I have some markdown content. For example:
let text = `This is line one,
This is para 2

**This is title 1**
This is para 3
**This is title 2**
This is para 4`
What I need to do is add a string like inbetween this markdown, after the 4th line break. So, it should appear after Title 1, and the new markdown should look as follows:
`This is line one,
This is para 2

**This is title 1**
<Ad />
This is para 3
**This is title 2**
This is para 4`
The problem is that I don't know how to look for line breaks in javascript.
How can I do this in javascript? The result should still be valid markdown.