From: Andy Allan Date: Wed, 8 Mar 2023 15:42:15 +0000 (+0000) Subject: Rework shared kramdown instructions to avoid html in translations X-Git-Tag: live~1330^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/2771921cb17c4ffc6a08f48344f4d92c1fbccdce Rework shared kramdown instructions to avoid html in translations --- 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