Annotations in header / in list, with Markdown and st-annotated-text

I’m using annotation from st-annotated-text and tried something like that:

    st.markdown("### " + text + str(annotation("apple", "fruit")), unsafe_allow_html=True)

While the HTML seems perfectly fine, st.markdown struggled with parsing it (see image).

What can I do?

Also, when using annotated_text it produces large, unreasonable margins (see image).

    annotated_text(("annotated", "adj", "#faa"))

Is it possible to use annotations in a heading / in a list (possibly in conjunction with Markdown)?

Can you help, @thiago, since you’re the maintainer of the project?