Skip to content

Feature: Get markdown content for selection #6503

@aperezgarcia93

Description

@aperezgarcia93

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions