# \[RESOLVED\] Nested lists of different types can't be indented with a code block

**URL:** <https://community.bear.app/t/resolved-nested-lists-of-different-types-cant-be-indented-with-a-code-block/14892>\
**Category:** Bear Bug Report\
**Created:** [February 6, 2025, 8:28pm UTC](https://community.bear.app/t/resolved-nested-lists-of-different-types-cant-be-indented-with-a-code-block/14892 "2025-02-06T20:28:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrendanThompson](https://dub1.discourse-cdn.com/flex013/user_avatar/community.bear.app/brendanthompson/32/4364_2.png) [@BrendanThompson](https://community.bear.app/u/BrendanThompson)\
**Post date:** [February 6, 2025, 8:28pm UTC](https://community.bear.app/t/resolved-nested-lists-of-different-types-cant-be-indented-with-a-code-block/14892/1 "2025-02-06T20:28:42Z")

</div>

- **Bear Version** : v2.3.11 (13182)
- **OS Version** : 15.3
- **What were you doing** : creating an ordered list where an entry contains a code block and then a nested unordered list
- **What feature did you use** : Ordered List, Unordered List, Code Block
- **What happened** : the unordered list will not indent under the code block
- **What did you expect to happen** : unordered list able to be indented under code block

The below screenshot shows the situation in Bear, with a code block below it for the markdown.

 ![CleanShot 2025-02-07 at 07.24.02](https://europe1.discourse-cdn.com/flex013/uploads/bear/original/2X/1/16fa78460a3a29c506c64754706846b6695808a3.png)

````auto
1. This is an ordered list
\```md
This is some code
\```
- example
2. This is the second point of an ordered list

````

_Edited – escape code block in code block_

---

<div class="post-metadata">

**Author:** ![rexikan](https://dub1.discourse-cdn.com/flex013/user_avatar/community.bear.app/rexikan/32/4117_2.png) [@rexikan](https://community.bear.app/u/rexikan)\
**Post date:** [February 7, 2025, 7:46am UTC](https://community.bear.app/t/resolved-nested-lists-of-different-types-cant-be-indented-with-a-code-block/14892/2 "2025-02-07T07:46:37Z")

</div>

> [@BrendanThompson](#):
>
> the unordered list will not indent under the code block

The reason is that the code block is _after_ the first list item, not _inside_ it. Indent the code block to make it part of the first list item.

---

<div class="post-metadata">

**Author:** ![BrendanThompson](https://dub1.discourse-cdn.com/flex013/user_avatar/community.bear.app/brendanthompson/32/4364_2.png) [@BrendanThompson](https://community.bear.app/u/BrendanThompson)\
**Post date:** [February 11, 2025, 6:08am UTC](https://community.bear.app/t/resolved-nested-lists-of-different-types-cant-be-indented-with-a-code-block/14892/3 "2025-02-11T06:08:21Z")

</div>

That makes perfect sense!
