# Live Preview: Better support of code blocks in lists

**URL:** <https://forum.obsidian.md/t/live-preview-better-support-of-code-blocks-in-lists/31352>\
**Category:** Bug reports\
**Tags:** not-intuitive, valuable, repro\
**Created:** [January 26, 2022, 3:26pm UTC](https://forum.obsidian.md/t/live-preview-better-support-of-code-blocks-in-lists/31352 "2022-01-26T15:26:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![efemkay](https://forum.obsidian.md/user_avatar/forum.obsidian.md/efemkay/32/26644_2.png) [@efemkay](https://forum.obsidian.md/u/efemkay)\
**Post date:** [April 5, 2022, 1:15am UTC](https://forum.obsidian.md/t/live-preview-better-support-of-code-blocks-in-lists/31352/5 "2022-04-05T01:15:22Z")

</div>

i agree, maybe what the editor can do is that detect that code block is being indented and keep the indentation until the closing backticks.

anyway, here’s my workaround to make it looks more in place (in case it helps u). i wrote the code block without bullet, and then just indent it (as many time as the bullet depth (first level - one tab, 2nd level - two tab)

 ![image](https://forum.obsidian.md/uploads/default/original/3X/7/1/7170df78637928c6483f37b1ed134873ebba849a.png)

---

_[View the full topic](https://forum.obsidian.md/t/live-preview-better-support-of-code-blocks-in-lists/31352)._
