https://github.com/react18-tools/react-markdown-autolink
A highly lightweight utility that automatically detects and makes links clickable in Markdown rendered by react-markdown.
https://github.com/react18-tools/react-markdown-autolink
Last synced: about 1 year ago
JSON representation
A highly lightweight utility that automatically detects and makes links clickable in Markdown rendered by react-markdown.
- Host: GitHub
- URL: https://github.com/react18-tools/react-markdown-autolink
- Owner: react18-tools
- License: mpl-2.0
- Created: 2024-07-12T09:53:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-09T16:25:03.000Z (about 1 year ago)
- Last Synced: 2025-04-09T17:37:31.326Z (about 1 year ago)
- Language: JavaScript
- Size: 4.06 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# React Markdown Autolink 
[](https://github.com/react18-tools/react-markdown-autolink/actions/workflows/test.yml) [](https://codeclimate.com/github/react18-tools/react-markdown-autolink/maintainability) [](https://codecov.io/gh/react18-tools/react-markdown-autolink) [](https://www.npmjs.com/package/react-markdown-autolink) [](https://www.npmjs.com/package/react-markdown-autolink)  [](https://gitpod.io/from-referrer/)
## Automatically Detect and Add Hyperlinks to Your Markdown Content
A highly lightweight utility that automatically detects and makes links clickable in Markdown rendered by `react-markdown` or other markdown renderers.
### Key Features
✅ **Automatic Link Detection**: Automatically detects URLs and makes them clickable in your Markdown content.
✅ **Lightweight**: Minimal overhead, ensuring fast and efficient performance.
✅ **Seamless Integration**: Easily integrates with `react-markdown` and other React, Vue, web components, or any other framework/library supporting markdown.
✅ **TypeScript First**: Built with TypeScript, ensuring type safety and developer-friendly experience.
>
Please consider starring [this repository](https://github.com/react18-tools/react-markdown-autolink) and sharing it with your friends.
## Getting Started
### Installation
```bash
pnpm add react-markdown-autolink
```
**_or_**
```bash
npm install react-markdown-autolink
```
**_or_**
```bash
yarn add react-markdown-autolink
```
## Usage
```ts
import Markdown from "react-markdown";
import { autoLinkMd } from "react-markdown-autolink";
const md = `## Automatically Detect and Add Hyperlinks to Your Markdown Content
https://github.com/react18-tools/react-markdown-autolink
`;
export default function Page() {
return {autoLinkMd(md)};
}
```
## License
This library is licensed under the MPL-2.0 open-source license.
>
Please consider enrolling in [our courses](https://mayank-chaudhari.vercel.app/courses) or [sponsoring](https://github.com/sponsors/mayank1513) our work.
with 💖 by Mayank Kumar Chaudhari