# Code Blocks in list not indented (and can't hack with css)

**URL:** <https://forum.obsidian.md/t/code-blocks-in-list-not-indented-and-cant-hack-with-css/109116>\
**Category:** Bug graveyard\
**Created:** [December 17, 2025, 11:21pm UTC](https://forum.obsidian.md/t/code-blocks-in-list-not-indented-and-cant-hack-with-css/109116 "2025-12-17T23:21:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ariehen](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ariehen/32/46932_2.png) [@ariehen](https://forum.obsidian.md/u/ariehen)\
**Post date:** [December 18, 2025, 1:08am UTC](https://forum.obsidian.md/t/code-blocks-in-list-not-indented-and-cant-hack-with-css/109116/2 "2025-12-18T01:08:44Z")

</div>

Reading view looks alright, but yeah, not the best in Live preview.

````auto
- text 
	- text text 
		~~~
		code
		~~~
	- text text
	   ```css  
       body {  
       	--file-line-width: 100%;
       } 
       ```

````

source mode | live preview | reading view

 ![Screenshot 2025-12-18 100944](https://forum.obsidian.md/uploads/default/original/3X/7/0/704c043e9b4034020c7cbffe4ea7398b3c9965f2.png)

* * *

Think this is the main report here:

> [@Live Preview: Better support of code blocks in lists](https://forum.obsidian.md/t/live-preview-better-support-of-code-blocks-in-lists/31352):
>
> Current Live Preview Reader

---

_[View the full topic](https://forum.obsidian.md/t/code-blocks-in-list-not-indented-and-cant-hack-with-css/109116)._
