You'll want to use a Regex Find and Replace, like this:
This searches for three dashes and then the next character is not a return (\n). We capture that non-return value
and then just put it back in the replace result ($1).
If you want to go super fancy, you can use the negative look ahead, but you may have to remember what the syntax is doing each time you go back to it:
Here the (?! ) is used to indicate we are just making sure that what is inside this group is NOT matched when looking ahead. In our case, \n
I always have to look up the exact syntax for look-ahead/behind and negative look-ahead/behind, so I typically use the first one because 99% of the cases, it works, uses basic matching and has no negative performance aspects. But either works.