My text contains a few item list and a code block, but I am really crazy when formatting the code, each time I try to format it, it was align to the item list, my work around was put an dot(.) between the list and the code block, any good way?
original text:
first line
seconds line
third line
int main(void) { return 0; }
first, I click the numbered list button to format the first 3 lines, I got the following result:
- first line seconds line third line
Then I manually separated the 2nd and 3rd lines to make it like this
- first line
- seconds line
- third line
From here, I tried lots of way to format the code, I always got this
- first line
- seconds line
third line
int main(void) { return 0; }
Finally, I put a dot between the list and the code block, too ugly, but works.
- first line
- seconds line
- third line
.
int main(void)
{
return 0;
}
<br>
but Mat's solution avoids the newline altogether (which is likely what you want