In my question here, I tried to paste code using the triple-backtick syntax. However, when I did that, the backticks appeared to be treated as just ordinary text:
``` MockMvc mvc = MockMvcBuilders.webAppContextSetup(ctx) .apply(SecurityMockMvcConfigurers.springSecurity()) .build()
HtmlUnitDriver driver = MockMvcHtmlUnitDriverBuilder.mockMvcSetup(mvc).javascriptEnabled(true).build() ```
This issue appears to be triggered if there are any blank-after-trim lines in the code block.
edit: In response to Martijn's answer that "they're not supported", they do work partially:
This is in code formatting.
```abc```
, you're getting one empty inline block for the first``
, then one inline block containing`abc`
, then one more empty inline block``
. This is identical to just using`abc`
or`````abc`````
or```````abc```````
. So long as you have an odd number of`
's, the leading and trailing ones are redundant and have no effect