]> git.openstreetmap.org Git - rails.git/commitdiff
Add code blocks markdown guidance
authorAltilunium <70379302+altilunium@users.noreply.github.com>
Fri, 29 Dec 2023 19:08:57 +0000 (19:08 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 29 Dec 2023 19:08:57 +0000 (19:08 +0000)
Closes #4441

app/views/shared/_markdown_help.html.erb
config/locales/en.yml

index 9097c9d9174c162b55cfddea5f37bc95e2fb6bf7..d2576bfcc959d81580cac5730f3159d039104fa6 100644 (file)
@@ -18,4 +18,7 @@
 
   <dt><%= t ".image" %></dt>
   <dd>![<%= t ".alt" %>](<%= t ".url" %>)</dd>
+
+  <dt><%= t ".codeblock" %></dt>
+  <dd>~~~<br><%= t ".codeblock" %><br>~~~</dd>
 </dl>
index 14e9b5c442373e6e0f39b0999011c259ffa6b3cc..792dcdef1a5900917b3a04e59837206716ec2d74 100644 (file)
@@ -1870,6 +1870,7 @@ en:
       image: Image
       alt: Alt text
       url: URL
+      codeblock: Code block
     richtext_field:
       edit: Edit
       preview: Preview