Figma description does not display properly when using closing html tags

I want to save HTML snippets in component descriptions using a plugin. I have this working and the description saves correctly, but in the Figma UI all text after a closing html tag disappears, and when opening up the description editor in the UI it updates to remove all the text and replaces with empty lines.

For example

<h1>
   Cat
</h1>
Dog

Appears as:
Screenshot 2024-01-09 190045

I saw on the API docs where is a note about a bug with descriptions, but was not sure if this is related out not?