In a text field that I output with kirbytext() I just noticed a strange behavior:
The text field contains an unordered list in markdown:
- Beisitzer
- Vorsitzender
- Aufsichtsrat
The HTML looks as expected:
<ul>
<li>Beisitzer</li>
<li>Vorsitzender </li>
<li>Aufsichtsrat</li>
</ul>
However, if one of the list items starts with a number, kirbytext() produces a nested list from it.
- Beisitzer
- 1. Vorsitzender
- Aufsichtsrat
The HTML will look like this:
<ul>
<li>Beisitzer</li>
<li>
<ol>
<li>Vorsitzender</li>
<ol>
</li>
<li>Aufsichtsrat</li>
</ul>
This behavior is driving me crazy right now. On the website in question, there are list items in several places within unordered lists that start with a bullet number. Looks like a bug for me. Has anybody already experienced this behavior and knows a workaround?