Skip to main content
4 of 6
[Edit removed during grace period]
Jesse
  • 1.4k
  • 7
  • 9

Indented code block italicizing text contained within asterisks

I stumbled across this question which has some peculiar formatting in the code block.

image of code block in question

I noticed that some of the text within the code block was italicized, which I was under the impression could not be done (with asterisks anyway) within a code block.

Unfortunately it doesn't seem to work the same on this site, so I can't create a similar code block to demonstrate here.

I opened the edit screen on the linked question to see what was going on, and weirdly enough the text was not italicized in the edit preview.

enter image description here

This only seems to happen with code blocks that have been indented. Code blocks using fences seem to not italicize the text, which is what I would expect.

I have a funny feeling that this is not how this is supposed to work.

Jesse
  • 1.4k
  • 7
  • 9