quantizor / markdown-to-jsx

🏭 The most lightweight, customizable React markdown component.
https://markdown-to-jsx.quantizor.dev/
MIT License
1.96k stars 169 forks source link

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 2 months ago

deeppresentation commented 2 months ago

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:

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