# Kirbytext: Nested lists

**URL:** <https://forum.getkirby.com/t/kirbytext-nested-lists/19670>\
**Category:** Questions\
**Tags:** v3\
**Created:** [October 6, 2020, 10:11am UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670 "2020-10-06T10:11:56Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrfickinger](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/chrfickinger/32/13608_2.png) [@chrfickinger](https://forum.getkirby.com/u/chrfickinger)\
**Post date:** [October 6, 2020, 10:11am UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/1 "2020-10-06T10:11:57Z")

</div>

Don’t really get the syntax for it. Any Ideas how to use nested lists in kirbytext or in markdown in general ?

thanks in advance

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [October 6, 2020, 10:18am UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/2 "2020-10-06T10:18:21Z")

</div>

```auto
- Item 1
  - Subitem 1
  - Subitem 2
- Item 2

```

---

<div class="post-metadata">

**Author:** ![chrfickinger](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/chrfickinger/32/13608_2.png) [@chrfickinger](https://forum.getkirby.com/u/chrfickinger)\
**Post date:** [October 6, 2020, 10:35am UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/3 "2020-10-06T10:35:05Z")

</div>

Spaces don’t help. They are just ignored.

Output is set to: $text-\>kt()

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 6, 2020, 11:13am UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/4 "2020-10-06T11:13:07Z")

</div>

Hm, worked for me. Which Kirby version are you using? Have you inspected the generated HTML?

---

<div class="post-metadata">

**Author:** ![chrfickinger](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/chrfickinger/32/13608_2.png) [@chrfickinger](https://forum.getkirby.com/u/chrfickinger)\
**Post date:** [October 6, 2020, 11:27am UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/5 "2020-10-06T11:27:16Z")

</div>

kirby 3.4.  
nested ul is missing in html as well ☹

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 6, 2020, 12:21pm UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/6 "2020-10-06T12:21:05Z")

</div>

Ah, I was stupid and tested with a standard textarea field 🤦‍♀️

---

<div class="post-metadata">

**Author:** ![chrfickinger](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/chrfickinger/32/13608_2.png) [@chrfickinger](https://forum.getkirby.com/u/chrfickinger)\
**Post date:** [October 6, 2020, 2:47pm UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/7 "2020-10-06T14:47:11Z")

</div>

Does that mean, it doesn‘t on your site as well?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 6, 2020, 2:47pm UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/8 "2020-10-06T14:47:48Z")

</div>

Haven’t had a chance to look into it yet.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 6, 2020, 4:45pm UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/9 "2020-10-06T16:45:35Z")

</div>

Hm, ok, I tested in Editor in a kirbytext block and the result is as expected.

![Bildschirmfoto von 2020-10-06 18-38-29](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/e/e188be18f5aa3d19bf0e96ea42e900234a6557fa.png)

 ![Bildschirmfoto von 2020-10-06 18-39-11](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/9/9406723dfec4f0d47d7ce774b303bfab11fd4d40.png)

Tested with:  
Kirby: 3.4.4-rc1 (3.4.4 was published today)  
Editor: 1.0.4

---

<div class="post-metadata">

**Author:** ![chrfickinger](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/chrfickinger/32/13608_2.png) [@chrfickinger](https://forum.getkirby.com/u/chrfickinger)\
**Post date:** [October 6, 2020, 5:02pm UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/10 "2020-10-06T17:02:27Z")

</div>

Hmm, no idea what I’m doing wrong ☹

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 6, 2020, 5:33pm UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/11 "2020-10-06T17:33:29Z")

</div>

> [@chrfickinger](#):
>
> Output is set to: $text-\>kt()

Which output? In the block snippet? Or in your template?

---

<div class="post-metadata">

**Author:** ![chrfickinger](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/chrfickinger/32/13608_2.png) [@chrfickinger](https://forum.getkirby.com/u/chrfickinger)\
**Post date:** [October 7, 2020, 10:49am UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/12 "2020-10-07T10:49:06Z")

</div>

The output of my text is defined in a builder snippet:

\<?php echo $data-\>text()-\>kt() ?\>

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 7, 2020, 10:53am UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/13 "2020-10-07T10:53:50Z")

</div>

But the field you use is an Editor field?

---

<div class="post-metadata">

**Author:** ![chrfickinger](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/chrfickinger/32/13608_2.png) [@chrfickinger](https://forum.getkirby.com/u/chrfickinger)\
**Post date:** [October 7, 2020, 10:56am UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/14 "2020-10-07T10:56:23Z")

</div>

actually it is a textarea. this is the part of my yml:

```
fieldsets:
  text:
    name: Text
    tabs:
      content:
        fields:
          myfield:
            type: textarea
```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 7, 2020, 11:02am UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/15 "2020-10-07T11:02:04Z")

</div>

> <https://github.com/TimOetting/kirby-builder/issues/147>
>
> getkirby/kirby#2397
> Kirby: 3.3
> Builder: latest
> Markdown - Nested List
> The list is just rendered as on level, not nested. The markdown works in a default...

  

> <https://github.com/getkirby/kirby/issues/1308>
>
> Describe the bug
> (Indenting) spaces (or tabs) at the beginning or the end of a line are deleted on save in textareas...

---

<div class="post-metadata">

**Author:** ![chrfickinger](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/chrfickinger/32/13608_2.png) [@chrfickinger](https://forum.getkirby.com/u/chrfickinger)\
**Post date:** [October 7, 2020, 11:04am UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/16 "2020-10-07T11:04:26Z")

</div>

Oh, thank you much for your answer and finding the unsolvable bug in the plugin. So i guess its time to switch to the new kirby core builder. 🙂

---

<div class="post-metadata">

**Author:** ![chrfickinger](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/chrfickinger/32/13608_2.png) [@chrfickinger](https://forum.getkirby.com/u/chrfickinger)\
**Post date:** [October 7, 2020, 11:38am UTC](https://forum.getkirby.com/t/kirbytext-nested-lists/19670/17 "2020-10-07T11:38:23Z")

</div>

Switching to the latest kirby core solved my problem. Thanks @pixelijn and @texnixe for your help.
