Title Style in the Outline Sidebar SYNC with the Editor

Use case or problem

I often apply Markdown or HTML syntax to Titles, to change the style of Titles. I might Highlight or Change the Color of a title because it’s important, or this section has special meanings to me.
However, the changes I made result in a MESSY Outline Sidebar. I hope the side bar can change the style of titles according to the changes I made in the editor.
For example, when I change color of “Notes” and highlight “Metadata”, “Notes” in the Outline Sidebar will also has GREEN color, and "Metadata"will also be highlighted, instead of <font color="lightgreen"> Notes </font> or ==Metadata==.