When clicking the Link button in the markdown/html editor, allow to select records from certain models. A more user friendly link picker is easier for clients and will prevent broken links.
Here's how it could work:
1. Option flag per model: "show in link picker"
2. If flag is on for that model, then choose how the URL for that record is determined:
3. When picking that record, the link is inserted as [text](url) based on above.
The benefit of dropping the Record ID rather than an actual URL is that the link becomes immune to breaking, as the Record ID will travel with the page even if you totally restructure the site. You simply have to parse the ID into the correct link in your SSG. The method I use for this is: