Skip to main content
3 of 3
edited tags
Ivar
  • 6.7k
  • 2
  • 24
  • 25

Should we make the {} button add ``` instead of four spaces?

I didn't know that the three backticks code fence feature was implemented until I asked this question.

This is a great new feature! I think the code block button in the editor (the {} button) should add three backticks as well, instead of the old four leading spaces syntax.

What I mean is this:

I have the text:

some code
some code line two

When I select that in the editor and press the code block button (or Ctrl/Cmd + K), this would happen:

```
some code
some code line two
```

instead of this:

    some code
    some code line two
Sweeper
  • 266.3k
  • 3
  • 28
  • 55