alphagov / govspeak

Markdown extension library for Government editors
http://govspeak-preview.herokuapp.com/
MIT License
85 stars 22 forks source link

(647) Support Embeds in GovSpeak #354

Closed pezholio closed 1 month ago

pezholio commented 1 month ago

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.