Govspeak content: Heading levels

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: "<h2>This is a h2 title</h2> <h3>This is a h3 title</h3> <h4>This is a h4 title</h4> <h5>This is a h5 title</h5> <h6>This is a h6 title</h6> " } %>

How this component looks

This is a h2 title

This is a h3 title

This is a h4 title

This is a h5 title
This is a h6 title