You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's better done with just <pre><code>{{{ code }}}</code></pre> (an I think you actually meant double brackets).
But I agree. Newline is already handled correctly in double-bracket expression, so for the consistency sake it should be handled correctly in the triple-bracket expression.
@simplesmiler In the real-world case where I encountered this, pre and code both had attributes making that line longer and code was actually highlight(exercise.example.code), so with everything added up, splitting it out into multiple lines was much nicer. 😃 I did also mean triple brackets here, since the code was being passed through highlight.js.
Here's a minimal viable example.
Not a huge deal, but:
is often preferable to:
since preformatted text would preserve the line breaks at the beginning and end of the code block.
The text was updated successfully, but these errors were encountered: