Auto-indenting code blocks in GitHub comments

2020/07/17

When you’re writing a code block in GitHub’s comment entry box, under what circumstances will it automatically indent a new line?

language closing backticks present code block created by intenting with content where auto indent
suggestion yes “Insert a suggestion” button tabs statement PR line comment yes
suggestion yes “Insert a suggestion” button spaces statement PR line comment yes
suggestion yes manual entry tabs statement PR line comment yes
suggestion yes manual entry spaces statement PR line comment yes
suggestio yes manual entry tabs statement PR line comment no
suggestio yes manual entry spaces statement PR line comment no
js yes manual entry tabs statement PR line comment no
js yes manual entry spaces statement PR line comment no
(absent) yes manual entry tabs statement PR line comment no
(absent) yes manual entry spaces statement PR line comment no
suggestion no manual entry spaces statement PR line comment no
suggestion yes manual entry tabs and spaces statement PR line comment yes, same sequence of whitespace
suggestion yes manual entry spaces and tabs statement PR line comment yes, same sequence of whitespace
suggestion yes manual entry tabs block open PR line comment yes, same level
suggestion yes manual entry tabs block close PR line comment yes, same level
suggestion yes manual entry tabs blank PR line comment yes, same level
suggestion yes manual entry spaces statement PR comment yes
suggestion yes manual entry spaces statement new PR description yes
suggestion yes manual entry spaces statement edit PR description yes
suggestion yes manual entry spaces statement review changes comment yes
suggestion yes manual entry spaces statement new issue yes
suggestion yes manual entry spaces statement commit changes description no—why not?
(absent) yes manual entry spaces statement file editor yes
(absent) no manual entry spaces statement file editor yes

What seems to be relevant:

My last post was about either Resources in Diablo 3 or New names for kinds of lava based on how they feel. Find out which.