alphagov / tech-docs-gem

Gem to distribute the tech docs project
https://tdt-documentation.london.cloudapps.digital/
MIT License
15 stars 38 forks source link

Allow warning_text helper to accept nested content (blocks) #173

Open NickColley opened 4 years ago

NickColley commented 4 years ago

We can use the warning_text help with a plain sentence to output a warning:

https://tdt-documentation.london.cloudapps.digital/amend_project/content/#insert-a-warning

If we want to put more complicated markup into this helper it does not work, for example a link.

We should consider making this helper work with blocks, for example.

<%= warning_text do %>
    <p>Hello, world <a href="#">Link to something</a></p>
<% end %>