# 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:** 2

<div class="post-metadata">

**Author:** ![Gamuza](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/g/da6949/32.png) [@Gamuza](https://forum.obsidian.md/u/Gamuza)\
**Post date:** [April 3, 2022, 4:21am UTC](https://forum.obsidian.md/t/live-preview-better-support-of-code-blocks-in-lists/31352/2 "2022-04-03T04:21:58Z")

</div>

### Steps to reproduce

Code block didn’t display properly with review mode.

problem 1. If I apply code block in an indent format, the vertical line position will be placed at a wrong place.

problem 2. if I write a long code in the code block, the display of the second line of the code will be start without indent, which is unacceptble for reading.

problem 3.The background color of the code block is at wrong place. It should be indented.

1. kkkk

### Expected result

 ![image](https://forum.obsidian.md/uploads/default/original/3X/4/7/4713fc61c62673fed8a32cafd8a74fee83bf95d0.png)

### Environment

- Operating system: Win10
- Obsidian version: v0.14.2

* * *

### Additional information

---

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