mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
parent
06de3a17f8
commit
fe65c0e44f
@ -8,7 +8,7 @@ class AdvancedTextFormatter < TextFormatter
|
||||
end
|
||||
|
||||
def block_code(code, _language)
|
||||
<<~HTML.squish
|
||||
<<~HTML
|
||||
<pre><code>#{ERB::Util.h(code).gsub("\n", '<br/>')}</code></pre>
|
||||
HTML
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user