The preview mode can't display a binary tree well.
For example, type the following pure text in a markdown file, and check the preview result.
5
/ \
4 8
/ / \
11 13 4
/ \ \
7 2 1
see the discription
check the picture attached.
Not

Markdown will be converted to HTML when previewing. And HTML just treat multiple spaces as one space. That's the reason why you get this result.
If you expect the same visual effect as your code, you need to use code block ```.
oh, yes, correct. When I copy back from HTML to VS Code, I see ``` is missing.
Most helpful comment
Markdown will be converted to HTML when previewing. And HTML just treat multiple spaces as one space. That's the reason why you get this result.
If you expect the same visual effect as your code, you need to use code block
```.