when adding indentation before - , it turns into codeblock like style
Thatâs right. Thatâs how Markdown works. Indenting something without a parent indicates you want code or pre-formatted text.
If you want to indent a bullet or checkbox, it needs a parent bullet or checkbox. Itâs the same on this forum, which also uses Markdown:
- Testing
- Testing 2
- Testing 3
- Testing 2
Or just a parent bullet:
- Testing
- Testing 2
- Testing 3
- Testing 2
And without a parent:
- [ ] Testing is code block
What I typed to show that:
- [ ] Testing
- [ ] Testing 2
- [ ] Testing 3
Or just a parent bullet:
- Testing
- [ ] Testing 2
- [ ] Testing 3
And without a parent:
- [ ] Testing is code block
Thank you! But isnât that counter-intuitive in this case?
I donât know how to answer that. You can learn more about the basics of Markdown here. Basic Syntax | Markdown Guide
In Markdown, leading indentation means something. It means you want it to be code. So if you donât want it to be code, donât do that. Thatâs all I can say!
You shouldnât need to add more than one indentation level for the logical structure to work, so whenever you add more than one indentation level you are likely to end up with code blocks.
When thinking logical structure, and not visual appearance, it does make sense.
If you do want to think visual appearance, you should look into using CSS to increase the indentation for the items you want to have at a higher indentation visually speaking.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.