I’m struggling to add a class attribute to a list when rendering to HTML. I’ve boiled the problem down to the fact that, no matter what I do, it produces <p> tags in between my <li> tags.
Here’s a minimal example which just tries to make a plain <ul> element with two items:
#html.ul(
(html.li("a"), html.li("b")).join("")
)
That produces this HTML:
<ul>
<li>a</li>
<p></p>
<li>b</li>
</ul>
I’ve found another thread about why Typst decides to wrap things in <p> tags, but I can’t see what I need to change here.
Are lists special?