diff --git a/app/views/admin/procedures/_document.html.erb b/app/views/admin/procedures/_document.html.erb
index ecf6e02..074faf1 100644
--- a/app/views/admin/procedures/_document.html.erb
+++ b/app/views/admin/procedures/_document.html.erb
@@ -32,7 +32,9 @@
3. System description
@@ -101,7 +103,7 @@
<% if policy.additional_procedures.present? %>
14. Additional procedures
- <%= policy.additional_procedures %>
+ <%= markdown(policy.additional_procedures) %>
<% end %>
Revision history
diff --git a/app/views/admin/procedures/show.html.erb b/app/views/admin/procedures/show.html.erb
index 5cde9e5..65aa88f 100644
--- a/app/views/admin/procedures/show.html.erb
+++ b/app/views/admin/procedures/show.html.erb
@@ -11,7 +11,8 @@
<%= f.field :responsible_name, label: "Responsible person", placeholder: "Jane Pilot" %>
<%= f.field :responsible_title, label: "Their role", placeholder: "Owner" %>
- <%= f.field :hosting_description, as: :textarea, rows: 2, label: "Hosting and network",
+ <%= f.field :hosting_description, as: :textarea, rows: 8, label: "Hosting and network",
+ hint: "Leave a blank line between paragraphs. Markdown works: **bold**, lists.",
placeholder: "Self-hosted on a server at the owner's home, behind a firewall and an authenticating proxy." %>
<%= f.field :offsite_backup_description, as: :textarea, rows: 2, label: (OffsiteConnection.connected? ? "Off-site backup (optional: Google Drive is connected)" : "Off-site backup"),
hint: (OffsiteConnection.connected? ? "The Google Drive backup is described automatically; add anything else here." : "Or set up the built-in Google Drive backup under Admin → Off-site Backup."),
@@ -20,7 +21,8 @@
<%= f.field :audit_interval_months, as: :number, min: 1, max: 24, label: "Audit every (months)" %>
<%= f.field :audit_sample_size, as: :number, min: 1, max: 50, label: "Entries sampled per audit" %>
- <%= f.field :additional_procedures, as: :textarea, rows: 3, label: "Additional procedures (optional)" %>
+ <%= f.field :additional_procedures, as: :textarea, rows: 12, label: "Additional procedures (optional)",
+ hint: "Leave a blank line between items. Markdown works: **bold** headings, lists." %>
<%= f.submit "Save" %>
<% end %>
diff --git a/test/integration/recordkeeping_procedures_test.rb b/test/integration/recordkeeping_procedures_test.rb
index 94b775a..2d8850a 100644
--- a/test/integration/recordkeeping_procedures_test.rb
+++ b/test/integration/recordkeeping_procedures_test.rb
@@ -28,6 +28,12 @@ class RecordkeepingProceduresTest < ActionDispatch::IntegrationTest
assert_response :success
assert_includes response.body, "Jane Pilot"
assert_includes response.body, "Self-hosted server behind a firewall."
+ RecordkeepingPolicy.current.update!(hosting_description: "First paragraph.\n\nSecond paragraph.", additional_procedures: "**Who makes entries.** The owner.\n\n**Retention.** Kept.")
+ get draft_admin_procedures_path
+ assert_select ".markdown p", text: "Second paragraph."
+ assert_select ".markdown strong", text: "Retention."
+ assert_no_match(/\*\*Retention/, response.body)
+ fill_policy
post adopt_admin_procedures_path, params: { summary: "Initial issue" }
r1 = ProceduresRevision.current
assert_equal 1, r1.number