Kirbytextinline() doesn't convert `-` to list items

Is it intentional that kirbytextinline() doesn’t convert “-” in content to lists, while kt() does it as expected.

That doesn’t really make sense, because the method is rather intended for one-liners, removing the p-tags?

Yep. It only supports inline markup, which an <ul> element is not. What is your use-case for this?

My use case is smaller lists of items which should be rendered without the wrapping <p>-element: it’s not only not correct semantically (in my use case), but it also renders unwanted margin-bottom this way.

I guess I got confused and I thought the kirbytextinline-method was a port of the kirbytextraw-plugin (which strips off wrapping <p>-elements afaik), but apparently the implementation is different and it’s not a “drop-in replacement”?

But lists aren’t wrapped in p tags? Only paragraphs.

<div class="note-text text">
      <p>Far far away,…</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<p>The Big Oxmox…</p>
</div>

This is the markup I get and that look perfectly OK to me.

Yes, you’re right. Of course. :see_no_evil::zipper_mouth_face:

Thx :raised_hands: