From 47e56741d0358b870b13ab405c870e76d678ea0b Mon Sep 17 00:00:00 2001 From: Altilunium <70379302+altilunium@users.noreply.github.com> Date: Fri, 29 Dec 2023 19:08:57 +0000 Subject: [PATCH] Add code blocks markdown guidance Closes #4441 --- app/views/shared/_markdown_help.html.erb | 3 +++ config/locales/en.yml | 1 + 2 files changed, 4 insertions(+) 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 -- 2.39.5