Description
I'm working with the markdown module of lexical and I realized there's no way to get the markdown string from only the selection of the text. I mean, If I use $convertToMarkdownString method, it only takes the full content of the editor and returns all the text in markdown, but in case of only being interested in the markdown string for the selection, it is not possible.
Would it be possible to change the signature/method or add a new one to allow that functionality? Or is there any possibility to do it currently with some workaround?
Thnaks!
Description
I'm working with the markdown module of lexical and I realized there's no way to get the markdown string from only the selection of the text. I mean, If I use
$convertToMarkdownStringmethod, it only takes the full content of the editor and returns all the text in markdown, but in case of only being interested in the markdown string for the selection, it is not possible.Would it be possible to change the signature/method or add a new one to allow that functionality? Or is there any possibility to do it currently with some workaround?
Thnaks!