Formatted structure panel

Use case or problem

When I opened the structure panel of a file, the one that lists the titles, if the title contains some formatting , like a span, all the necessary html code is shown. How do I list the titles only as text, or replace all the formatting with bold, or show it formatted as in the body of the file?

Proposed solution

I would like a general vault setting that specifies how to show formatting in the structure panel, and the ability to override that setting in individual files or folders, and the ability to change the display type “on the fly” while I am viewing the file, but without saving the setting permanently.

Current workaround (optional)

All formatting is shown