You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React Markdown Autolink is a comprehensive library designed to unlock the full potential of React 18 server components. It provides customizable loading animation components and a fullscreen loader container, seamlessly integrating with React and Next.js.
5
+
## Automatically Detect and Add Hyperlinks to Your Markdown Content
6
6
7
-
✅ Fully Treeshakable (import from `react-markdown-autolink/client/loader-container`)
7
+
A highly lightweight utility that automatically detects and makes links clickable in Markdown rendered by `react-markdown` or other markdown renderers.
8
8
9
-
✅ Fully TypeScript Supported
9
+
### Key Features
10
10
11
-
✅ Leverages the power of React 18 Server components
11
+
✅ **Automatic Link Detection**: Automatically detects URLs and makes them clickable in your Markdown content.
12
12
13
-
✅ Compatible with all React 18 build systems/tools/frameworks
13
+
✅ **Lightweight**: Minimal overhead, ensuring fast and efficient performance.
14
14
15
-
✅ Documented with [Typedoc](https://react18-tools.github.io/react-markdown-autolink) ([Docs](https://react18-tools.github.io/react-markdown-autolink))
15
+
✅ **Seamless Integration**: Easily integrates with `react-markdown` and other React, Vue, web components, or any other framework/library supporting markdown.
16
16
17
-
✅ Examples for Next.js, Vite, and Remix
17
+
✅ **TypeScript First**: Built with TypeScript, ensuring type safety and developer-friendly experience.
18
18
19
19
> <imgsrc="https://github.com/react18-tools/react-markdown-autolink/blob/main/popper.png?raw=true"style="height: 20px"/> Please consider starring [this repository](https://github.com/react18-tools/react-markdown-autolink) and sharing it with your friends.
20
20
@@ -23,99 +23,33 @@ React Markdown Autolink is a comprehensive library designed to unlock the full p
23
23
### Installation
24
24
25
25
```bash
26
-
$ pnpm add react-markdown-autolink
26
+
pnpm add react-markdown-autolink
27
27
```
28
28
29
29
**_or_**
30
30
31
31
```bash
32
-
$ npm install react-markdown-autolink
32
+
npm install react-markdown-autolink
33
33
```
34
34
35
35
**_or_**
36
36
37
37
```bash
38
-
$ yarn add react-markdown-autolink
38
+
yarn add react-markdown-autolink
39
39
```
40
40
41
-
## Want Lite Version? [](https://www.npmjs.com/package/react-markdown-autolink-lite)[](https://www.npmjs.com/package/react-markdown-autolink-lite)[](https://www.npmjs.com/package/react-markdown-autolink-lite)
41
+
## Usage
42
42
43
-
```bash
44
-
$ pnpm add react-markdown-autolink-lite
45
-
```
46
-
47
-
**or**
48
-
49
-
```bash
50
-
$ npm install react-markdown-autolink-lite
51
-
```
52
-
53
-
**or**
54
-
55
-
```bash
56
-
$ yarn add react-markdown-autolink-lite
57
-
```
58
-
59
-
> You need `r18gs` as a peer-dependency
60
-
61
-
### Import Styles
62
-
63
-
You can import styles globally or within specific components.
For detailed API and options, refer to [the API documentation](https://react18-tools.github.io/react-markdown-autolink).
96
-
97
-
**Using LoaderContainer**
98
-
99
-
`LoaderContainer` is a fullscreen component. You can add this component directly in your layout and then use `useLoader` hook to toggle its visibility.
100
-
101
-
```tsx
102
-
// layout.tsx
103
-
<LoaderContainer />
104
-
...
105
-
```
47
+
const md =`## Automatically Detect and Add Hyperlinks to Your Markdown Content
0 commit comments