@chrsle : In VSCode you can search and replace new lines while also using regex I think. I imagine you could do a mass search and replace using that tactic. In @akaalias documentation for pdf to markdown plugin he mentions using this
^([ ]|\t)+
when trying to rid lines of an extra space at beginning of some lines in the converted text. I think between adapting that and possibly using the VSCode ability to include returns in searches, you could put something together. Perhaps you don’t need the regex at all, but I would think you would need some.
Bottom line, it seems possible.
Good luck.
Thanks.