Govspeak content: With youtube embed

To display long form text which has been converted from Govspeak

Govspeak is GOV.UK’s extension of Markdown.

This component has no control over markup, which is passed in to the component pre-generated. It only applies CSS/JS.

It applies styling to standard Markdown content, eg; paragraphs, headings and lists. It also applies styling to Govspeak specific markup, like callouts, contacts and highlights.

In addition to styling, it also applies some Javascript behaviours.

How to call this component

<%= render partial: 'govuk_component/govspeak', locals: { content: "<p>This content has a YouTube video link, converted to an accessible embedded player by component JavaScript.</p> <p><a href=\"https://www.youtube.com/watch?v=y6hbrS3DheU\">Operations: a developer's guide, by Anna Shipman</a></p> " } %>

How this component looks

This content has a YouTube video link, converted to an accessible embedded player by component JavaScript.

Operations: a developer's guide, by Anna Shipman