Write, preview, publish: how a post becomes a page
Originally published at https://blog.galascribe.com/write-preview-publish-how-a-post-becomes-a-page/ . When you press Publish, your text passes through four places: your browser, our API, your site repository on GitHub, and a workflow that runs inside that same repository. We designed each step so that it can fail without losing what you wrote, and without claiming a result it has not seen. This…
When you press Publish, your text goes through four stages: your browser, the API, your site repository on GitHub, and a workflow within that repository. Each stage guarantees certain aspects of the publishing process to prevent loss of data or incomplete results. The preview is drawn in your browser while you type, using the same Markdown library as the site renderer, with no HTML, automatic link detection, or typographic replacements.
The preview is rendered in a sandboxed frame with no permissions, ensuring no sensitive information is compromised. Once saved, the draft lives in your site repository on a change branch, ensuring it is separate from your database and protected against casual inspection.
Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.