In the default mode of the code
</> button, when you select some text in the middle of a line and click the code button, it wraps that text in single backticks, like
We learned about the “code formatting style = code-fences” mode from today’s blog post and turned it on right away, but I was surprised to find that selecting a word inline and clicking the code button no longer wraps it in single backticks; it wraps it in triple backticks and adds newlines before and after the selected word.
Users can delete the newlines to get the intended result (which is to say, you can write
```triple backticks``` on a single line and it DTRT) but I don’t think it’s correct to add newlines to selected text.
This is a bug, right? (Or is it by design for some reason?)