Govspeak content example

Youtube embed disabled by content

YouTube links should not become an embed if the YouTube link is in a paragraph with other content.

How it looks (preview)

This youtube video titled Operations: a developer's guide, by Anna Shipman should stay as a link due to this non-link text existing in the paragraph.

How to call this example

<%= render "govuk_publishing_components/components/govspeak", {} do %>
  <p>This youtube video titled <a href="https://www.youtube.com/watch?v=y6hbrS3DheU">Operations: a developer's guide, by Anna Shipman</a> should stay as a link due to this non-link text existing in the paragraph.</p>
<% end %>