Foldable HTML Comments

Use case or problem

I want to be able to fold HTML comments <!--- comment -->.
I use these when converting to pandoc (pandoc doesn’t convert content inside HTML comments, but does convert content inside Obsidian comments %% %%).
Sometimes the content inside the HTML comment can be quite alot, so it would be useful to fold it.

Proposed solution

Allow HTML comments to be folded just like headings or bullet points.

Current workaround (optional)

I don’t currently have a workaround for this.