From: Altilunium <70379302+altilunium@users.noreply.github.com> Date: Fri, 29 Dec 2023 19:08:57 +0000 (+0000) Subject: Add code blocks markdown guidance X-Git-Tag: live~926 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/47e56741d0358b870b13ab405c870e76d678ea0b Add code blocks markdown guidance Closes #4441 --- diff --git a/app/views/shared/_markdown_help.html.erb b/app/views/shared/_markdown_help.html.erb index 9097c9d91..d2576bfcc 100644 --- a/app/views/shared/_markdown_help.html.erb +++ b/app/views/shared/_markdown_help.html.erb @@ -18,4 +18,7 @@
<%= t ".image" %>
![<%= t ".alt" %>](<%= t ".url" %>)
+ +
<%= t ".codeblock" %>
+
~~~
<%= t ".codeblock" %>
~~~
diff --git a/config/locales/en.yml b/config/locales/en.yml index 14e9b5c44..792dcdef1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1870,6 +1870,7 @@ en: image: Image alt: Alt text url: URL + codeblock: Code block richtext_field: edit: Edit preview: Preview