I would like to use nested list with markdown editor like so:
- List item lvl 1
- List item lvl 1
- List item lvl 1
- List item lvl 2
- List item lvl 2
- List item lvl 3
- List item lvl 3
- List item lvl 1
- List item lvl 1
Problem is that when I try to save such structure with Kirby all the leading space get removed so markdown recognises only first level of the list.
But when you try to save the example you posted, all the spaces will be preserved and visible on front-end? Because in my case whenever I save some textarea field all the trailing spaces get removed.
I’m having this issue with textareas inside of structure fields.
For regular textareas nested lists work fine, but inside of structure fields, the whitespace gets stripped out after saving the page.
Can you reproduce this?
Any other ideas on how to create a nested list in a textarea inside a structure field?
In older versions of Kirby nested lists within textareas of structure fields were possible, just trying to find out when it stopped working. But since the above mentioned issue is very old, that must have been quite some while ago…
If you absolutely must have nested list, I recommend you use subpages instead of a structure field.
Oh, too bad.
I can’t switch to subpages here, in this case our content model prevents us from this as we need to use a structure field. We also need to have nested lists in it …
I will do some research on this, maybe I find some HTML input that works.
Thank you!