From 2771921cb17c4ffc6a08f48344f4d92c1fbccdce Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 8 Mar 2023 15:42:15 +0000 Subject: [PATCH] Rework shared kramdown instructions to avoid html in translations --- app/views/shared/_markdown_help.html.erb | 4 +++- config/locales/en.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_markdown_help.html.erb b/app/views/shared/_markdown_help.html.erb index 5bd8c4955..9097c9d91 100644 --- a/app/views/shared/_markdown_help.html.erb +++ b/app/views/shared/_markdown_help.html.erb @@ -1,4 +1,6 @@ -
<%= t ".title_html" %>
+
+ <%= t ".heading_html", :kramdown_link => link_to(t(".kramdown"), t(".kramdown_url")) %> +
<%= t ".headings" %>
# <%= t ".heading" %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index f1ce573f0..9df536c33 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1823,7 +1823,9 @@ en: support: support shared: markdown_help: - title_html: Parsed with kramdown + heading_html: Parsed with %{kramdown_link} + kramdown_url: https://kramdown.gettalong.org/quickref.html + kramdown: kramdown headings: Headings heading: Heading subheading: Subheading -- 2.39.5