Files
notifications-admin/app/templates/partials/templates/guidance-formatting.html

36 lines
983 B
HTML
Raw Normal View History

{% from "components/components/inset-text/macro.njk" import govukInsetText %}
<h2 class="heading-medium">Formatting</h2>
<p class="bottom-gutter-1-3">
To put a title in your template, use a hash:
</p>
2023-08-25 10:40:56 -04:00
<div>
{{ govukInsetText({"text": "# This is a title", "classes": ""})}}
</div>
<p class="bottom-gutter-1-3">
To make bullet points, use asterisks:
</p>
2023-08-25 10:40:56 -04:00
<div>
{{ govukInsetText({
"html": "* point 1<br/>
* point 2<br/>
* point 3<br/>",
2023-08-25 10:40:56 -04:00
"classes": ""})
}}
</div>
<p class="bottom-gutter-1-3">
2020-02-06 12:54:27 +00:00
To add inset text, use a caret:
</p>
2023-08-25 10:40:56 -04:00
<div>
2023-08-25 11:38:07 -04:00
{{ govukInsetText({"text": "^ You must tell us if your circumstances change", "classes": ""})}}
</div>
<p class="bottom-gutter-1-3">
To add a horizontal line, use three dashes:
</p>
{{ govukInsetText({
2023-08-25 11:49:13 -04:00
"html": '<p class="usa-body">First paragraph</p>
<p class="usa-body" style="letter-spacing: 1px;">---</p>
<p class="usa-body">Second paragraph</p>',
2023-08-25 10:40:56 -04:00
"classes": ""})
}}