parent
cdc2e27eca
commit
4e5cd0b1ed
1 changed files with 1 additions and 1 deletions
|
@ -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