Script to add ?ref to external links

If you every copied text from Google docs to ghost, you’ve probably noticed that links are screwed with a space prefix - this script fixes it.

Also, I add a ?ref=your_site_url to all external links.

Check it out here: Fix Ghost newsletter links and add ?ref= to referenced links · GitHub

Tested on ghost 5.x