Custom highlighting

I want to make a clone of Obsidian and I basically wanted a mix of the text_editor and markdown components: a text editor that allows displaying titles, bold, (eventually) lists, etc.

I’m new to rust so I don’t know if I’m just approaching this the wrong way, but I don’t see how I can implement my own Highlighter, and then how can I pass it to the text_editor - if I’m not mistaken, it only takes the settings for the inbuilt Highlighter, is that so?

I tried calling highlight_with with my own to_format function, but I’m unable to instantiate a Format due to visibility, is this feasible?

My apologies in advance, I’m very new to Rust, but I really liked the Elm-style architecture of this library.