Indenting singular bullet points without a parent

I have an unordered list with a sublist. I then break it to have a block of code. I want to restart the list at the indentation level of the sublist, but it turns into a code block.

I’ve tried making a list and then trying to move it to the same indentation level using spaces, but it only works for 3 spaces or less. When I hit 4 spaces it turns into an indentation and makes it a code block again.

Is there a way I can achieve this? Is there maybe a way I can continue the sublist without the code block breaking it?

The formatting is tricky to get right and it looks a bit strange in Source mode, but if the code block is indented under the second sub-bullet, it should work. Not sure if that will work for you / what you are going for or not. There’s a feature request for better handling of code blocks in lists.

- text text
	- text text
		~~~
		code
		~~~
	- text text

---

- text text
	- text text
		```
		code
		```
	- text text

Source mode | Live Preview | Reading mode

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.