This moves the logic to extract embedded content information and render embeds from the Publishing API into the Govpress code. This gives us the flexibility to rub embed logic in other places within the publishing estate (for example: inline previews within Whitehall), as well as providing a single source of truth for supported content types without having to call to the Publishing API.
Assuming we all agree that this is the way forward, the next step will be to use this code in the Publishing API, as well as write up an ADR to record this decision. We will also then be able to use this code to allow embeds to work in the live preview in Whitehall.
This moves the logic to extract embedded content information and render embeds from the Publishing API into the Govpress code. This gives us the flexibility to rub embed logic in other places within the publishing estate (for example: inline previews within Whitehall), as well as providing a single source of truth for supported content types without having to call to the Publishing API.
Assuming we all agree that this is the way forward, the next step will be to use this code in the Publishing API, as well as write up an ADR to record this decision. We will also then be able to use this code to allow embeds to work in the live preview in Whitehall.