Describe the bug
Content is placed after any child elements of a html element. It should be able to use the position in the hiccup sequence.
To Reproduce
This test will fail:
def test_order_of_items() -> None:
"""Assert that items of different types are ordered as expected."""
data = ["h1", "some", ["span.pys", "<py>"], "jokes"]
assert render(data) == '<h1>some<span class="pys"><py></span>jokes</h1>'
The rendered output is
<h1><span class="pys"><py></span>somejokes</h1>
Expected behavior
It should be possible to specify the content to be before any child elements.
Describe the bug
Content is placed after any child elements of a html element. It should be able to use the position in the hiccup sequence.
To Reproduce
This test will fail:
The rendered output is
Expected behavior
It should be possible to specify the content to be before any child elements.