Govspeak content: Inline attachment

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>testing my attachment <span class=\"inline-attachment\" id=\"attachment_1399340\"> <a href=\"/government/uploads/system/uploads/attachment_data/file/498071/PHE_Payments_over__25k_Jun_15.csv\">testing</a> (<span class=\"type\"><abbr title=\"Comma-separated Values\">CSV</abbr></span>, <span class=\"file-size\">65.4KB</span>)</span> works in the middle of copy. </p> " } %>

How this component looks

testing my attachment testing (CSV, 65.4KB) works in the middle of copy.