Fix leading spaces being stripped in Markdown code blocks

Fixes #1776
th-downstream
Claire 2 years ago
parent cdc2e27eca
commit 4e5cd0b1ed

@ -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…
Cancel
Save