1
$\begingroup$

You can now use backticks for code on StackExchange, e.g.

this is code between fences!

... which is just ...

```
This is code between fences!
```

However, the backticks will show up in the code if it

  • contains blank lines;
  • is at the end of the post and
  • doesn't end with a newline (which is probably why it has to be at the end of the post).

This doesn't happen on StackExchange Meta, so I cannot report the bug there.

Either it has to do with the site design or the MathJax support. As the problem is also on the Math site but not on the Security site, I suspect MathJax. To be precise, I understand that posts containing MathJax now have localized definitions of $\TeX$, so I think that the wrapping of the posts for MathJax may be the culprit.


Weird huh?
```
$\endgroup$
5
  • $\begingroup$ Probably of more importance than the tiny bug is that, hey, we've got fences, nice :) $\endgroup$
    – Maarten Bodewes Mod
    Apr 28, 2019 at 22:45
  • 1
    $\begingroup$ Does this issue persist? $\endgroup$
    – JNat StaffMod
    Nov 17, 2022 at 11:47
  • $\begingroup$ Nah, it doesn't seem to, I'll delete it altogether. $\endgroup$
    – Maarten Bodewes Mod
    Nov 17, 2022 at 12:40
  • 2
    $\begingroup$ No need to delete it, I'd say — maybe we can just [status-completed] it $\endgroup$
    – JNat StaffMod
    Nov 17, 2022 at 14:10
  • 1
    $\begingroup$ Oh, yeah, sorry, makes sense -> and done. Thanks, I never had to do that, so it is not in my picks of actions to make :) $\endgroup$
    – Maarten Bodewes Mod
    Nov 17, 2022 at 14:23

1 Answer 1

1
$\begingroup$

As a workaround, simply add a newline at the end of the final backticks for now...

I guess we have to fence off the fence :)

Test
$\endgroup$

You must log in to answer this question.

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