You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 28, 2022. It is now read-only.
Add either a dedicated pipe or extend the existing html pipe to take markdown from the POSTed request.body, proxy the html pipe, and wrap the generated output in a JSON object:
{
"content": "<!doctype html>... "
}
This would be a safe way to support live (read: "as you type") previewing of markdown using Helix (for example using a browser extension).
The simplest and most transparent solution would be to register a new pipeline to a .preview.json selector/extension combo, and have editing tools POST there.
A more sophisticated solution would be to use a vendor specific mime-type like application/vnd.helix.preview+json in the Accept header, so the POST could be made to the original (.html) path, and pipe resolution would be handled by Fastly based on the header.