Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Handle user selection change event in rendered Markdown. Emit an event that returns the corresponding selection in plain Markdown #587

Open
deeppresentation opened this issue Jun 14, 2024 · 0 comments

Comments

@deeppresentation
Copy link

First of all, thank you for the amazing package. It works perfectly. There are some minor issues with rendering emojis, but that's not a big deal to fix it from the outside. I'd like to ask if it would be possible to add the following feature:

Handle selectionchange event in rendered Markdown. Then emit an public event that returns the corresponding selection in plain Markdown text:

  • corresponding plain text
  • position of selection in original plain text - start and end

That would make a markdown-to-jsx more customizable and would allow to implement interactive features
Have a nice day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant