9

I just noticed that something weird happened today with code fences and Stack Snippets.

Examples:

<h1>Hello World!<h1>

Hello World!

Seems like the boxes are bigger. What is the (unneeded?) space above, under and left the code?

I know this is , but is there a benefit it was designed like this? I (at least) found it confusing to follow in large script:

var a = "a";
var b = "b";
var c = "c";

console.log(a);
console.log(b);
console.log(c);

1

1 Answer 1

7

This was changed to address a long-standing issue with Macs' weird-ass "auto-hiding-and-then-reappearing-on-top-of-your-code" scrollbar feature.

More details in Ted's answer here: Has the padding on code blocks been increased?

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .