mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-20 12:19:27 +00:00
parent
06de3a17f8
commit
fe65c0e44f
|
@ -8,7 +8,7 @@ class AdvancedTextFormatter < TextFormatter
|
||||||
end
|
end
|
||||||
|
|
||||||
def block_code(code, _language)
|
def block_code(code, _language)
|
||||||
<<~HTML.squish
|
<<~HTML
|
||||||
<pre><code>#{ERB::Util.h(code).gsub("\n", '<br/>')}</code></pre>
|
<pre><code>#{ERB::Util.h(code).gsub("\n", '<br/>')}</code></pre>
|
||||||
HTML
|
HTML
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue