-
-
Notifications
You must be signed in to change notification settings - Fork 874
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
Support Automatic Link Detection and Hyperlinking #844
Comments
Welcome @mayank1513 👋 It could be added through an plugin, like
If your top priority is bundle size, and you don't need to customize the syntax tree/content with plugins. You can shave a lot more than the 10kb that you seem frustrated by currently.
I appreciate the offer. |
This comment has been minimized.
This comment has been minimized.
Thanks. One additional thing is that, I had initially used |
Right that's how auto link detection works on github, see how the autolink is handled below: |
Initial checklist
Problem
I would like to request support for automatic link detection and hyperlinking in react-markdown. This feature would automatically convert plain text URLs and email addresses into clickable links during the rendering process, without requiring manual Markdown formatting.
Currently, the official alternative requires adding bulky plugins such as
remark-gfm
.Solution
Automatic link detection and hyperlinking is a common feature in many markdown parsers and text editors. It enhances user experience by simplifying the process of adding links and ensures that URLs and email addresses are always clickable, improving accessibility and usability.
Create a property
autoLink
. When this property is set on theReactMarkdown
component, links should be parsed and converted toa
tag.Alternatives
Currently, the official alternative requires adding bulky plugins such as
remark-gfm
. Another alternative could be usingreact-markdown-autolink
This is a tiny library less than 1/2 kB.
The text was updated successfully, but these errors were encountered: