Skip to content

Commit 182539d

Browse files
committed
docs: update README
1 parent b5e61e3 commit 182539d

File tree

3 files changed

+54
-166
lines changed

3 files changed

+54
-166
lines changed

README.md

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,23 @@
55
[![npm version][npm-version-src]][npm-version-href]
66
[![bundle][bundle-src]][bundle-href]
77
[![License][license-src]][license-href]
8-
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/serkodev/markdown-exit)
98

109
A TypeScript rewrite of [markdown-it](https://github.com/markdown-it/markdown-it) with first-class typings, modern tooling, and enhancements.
1110

12-
## Compatibility & Differences
11+
## Features
1312

14-
- **API compatibility:** Compatible with markdown-it `v14.1.0` and plugin API.
15-
- **TypeScript:** Ship robust types, improve DX, and enable type-safe development.
16-
- **Extensibility:** Provide a clean foundation for new features that are easier to prototype and maintain.
17-
- **New features:** Track via [features](https://github.com/serkodev/markdown-exit/issues?q=is:issue%20label:features) for details.
13+
- 🛡️ **Type Safety:** Ship robust types, improve DX, and enable type-safe development.
14+
- **New features:** [Async rendering](https://markdown-exit.pages.dev/guide/rendering.html#async-rendering) for all rules includeing syntax highlighting and [more](https://github.com/serkodev/markdown-exit/issues?q=is:issue%20label:features).
15+
- 🔌 **Extensibility:** Extend the markdown syntax, custom rendering with [Plugins](https://markdown-exit.pages.dev/guide/plugins.html).
16+
- 🤝 **Compatibility:** Compatible with markdown-it `v14.1.0` and plugin API.
1817

19-
## Quickstart
18+
## Documentation
2019

21-
### Install
20+
Read the [documentation](https://markdown-exit.pages.dev/) for more details.
2221

23-
`v1+` (latest): All new features and may include breaking changes.
22+
## Installation
23+
24+
v1+ [`@latest`](https://www.npmjs.com/package/markdown-exit/v/latest): All new features and may include breaking changes.
2425

2526
> [!IMPORTANT]
2627
> 🚧 **markdown-exit** v1 is currently in **public beta** (`v1.0.0-beta.*`).
@@ -30,40 +31,41 @@ A TypeScript rewrite of [markdown-it](https://github.com/markdown-it/markdown-it
3031
npm i markdown-exit
3132
```
3233

33-
`v0.x` (legacy): Full compatibility with markdown-it usage while adding TypeScript support, bug fixes and performance improvements. ([v0](https://github.com/serkodev/markdown-exit/tree/v0) branch)
34+
<details>
35+
<summary>v0.x <a href="https://www.npmjs.com/package/markdown-exit/v/legacy"><code>@legacy</code></a></summary>
36+
37+
Full compatibility with markdown-it usage while adding TypeScript support, bug fixes and performance improvements. ([v0](https://github.com/serkodev/markdown-exit/tree/v0) branch)
3438

3539
```bash
3640
npm i markdown-exit@legacy
3741
```
3842

39-
### Usage
43+
</details>
4044

41-
#### Named import (recommended)
45+
## Usage
4246

4347
```ts
4448
import { createMarkdownExit } from 'markdown-exit'
4549

4650
// factory helper
4751
const md = createMarkdownExit()
48-
md.render('# markdown-exit')
52+
const html = md.render('# markdown-exit')
4953
```
5054

5155
```ts
5256
import { MarkdownExit } from 'markdown-exit'
5357

5458
// with the `new` keyword
5559
const md = new MarkdownExit()
56-
md.render('# markdown-exit')
60+
const html = md.render('# markdown-exit')
5761
```
5862

59-
#### Default import
63+
<details>
64+
<summary>Default import</summary>
6065

6166
> [!NOTE]
6267
> Default export (with callable constructor support) is retained for markdown-it compatibility, but it may have drawbacks in module interop and tree-shaking.
6368
64-
<details>
65-
<summary>Example</summary>
66-
6769
```ts
6870
import MarkdownExit from 'markdown-exit'
6971

@@ -79,22 +81,22 @@ md.render('# markdown-exit')
7981
```
8082
</details>
8183

82-
#### Documentation
84+
### Guides
8385

84-
Visit markdown-it [API Documentation](https://markdown-it.github.io/markdown-it/) for more info and examples.
86+
- [Markdown Syntax](https://markdown-exit.pages.dev/guide/markdown-syntax.html)
87+
- [Redering](https://markdown-exit.pages.dev/guide/rendering.html)
88+
- [Plugins](https://markdown-exit.pages.dev/guide/plugins.html)
8589

86-
### Migrate from markdown-it
90+
## Migrate from markdown-it
8791

88-
markdown-exit is designed to be a drop-in replacement for markdown-it with enhancements. After installing markdown-exit, simply update your imports:
92+
Drop-in replacement for markdown-it with enhancements, see [Migration Guide](https://markdown-exit.pages.dev/guide/migrate-from-markdown-it.html) for details.
8993

9094
```diff
9195
- import MarkdownIt from 'markdown-it'
9296
+ import MarkdownExit from 'markdown-exit'
9397
```
9498

95-
Everything else should work as expected. ✨
96-
97-
## References / Thanks
99+
## Credits
98100

99101
This project owes its foundation to the [markdown-it](https://github.com/markdown-it/markdown-it) community and all its [contributors](https://github.com/markdown-it/markdown-it/graphs/contributors).
100102

packages/bench/samples/README.md

Lines changed: 0 additions & 116 deletions
This file was deleted.

packages/markdown-exit/README.md

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,23 @@
55
[![npm version][npm-version-src]][npm-version-href]
66
[![bundle][bundle-src]][bundle-href]
77
[![License][license-src]][license-href]
8-
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/serkodev/markdown-exit)
98

109
A TypeScript rewrite of [markdown-it](https://github.com/markdown-it/markdown-it) with first-class typings, modern tooling, and enhancements.
1110

12-
## Compatibility & Differences
11+
## Features
1312

14-
- **API compatibility:** Compatible with markdown-it `v14.1.0` and plugin API.
15-
- **TypeScript:** Ship robust types, improve DX, and enable type-safe development.
16-
- **Extensibility:** Provide a clean foundation for new features that are easier to prototype and maintain.
17-
- **New features:** Track via [features](https://github.com/serkodev/markdown-exit/issues?q=is:issue%20label:features) for details.
13+
- 🛡️ **Type Safety:** Ship robust types, improve DX, and enable type-safe development.
14+
- **New features:** [Async rendering](https://markdown-exit.pages.dev/guide/rendering.html#async-rendering) for all rules includeing syntax highlighting and [more](https://github.com/serkodev/markdown-exit/issues?q=is:issue%20label:features).
15+
- 🔌 **Extensibility:** Extend the markdown syntax, custom rendering with [Plugins](https://markdown-exit.pages.dev/guide/plugins.html).
16+
- 🤝 **Compatibility:** Compatible with markdown-it `v14.1.0` and plugin API.
1817

19-
## Quickstart
18+
## Documentation
2019

21-
### Install
20+
Read the [documentation](https://markdown-exit.pages.dev/) for more details.
2221

23-
`v1+` (latest): All new features and may include breaking changes.
22+
## Installation
23+
24+
v1+ [`@latest`](https://www.npmjs.com/package/markdown-exit/v/latest): All new features and may include breaking changes.
2425

2526
> [!IMPORTANT]
2627
> 🚧 **markdown-exit** v1 is currently in **public beta** (`v1.0.0-beta.*`).
@@ -30,40 +31,41 @@ A TypeScript rewrite of [markdown-it](https://github.com/markdown-it/markdown-it
3031
npm i markdown-exit
3132
```
3233

33-
`v0.x` (legacy): Full compatibility with markdown-it usage while adding TypeScript support, bug fixes and performance improvements. ([v0](https://github.com/serkodev/markdown-exit/tree/v0) branch)
34+
<details>
35+
<summary>v0.x <a href="https://www.npmjs.com/package/markdown-exit/v/legacy"><code>@legacy</code></a></summary>
36+
37+
Full compatibility with markdown-it usage while adding TypeScript support, bug fixes and performance improvements. ([v0](https://github.com/serkodev/markdown-exit/tree/v0) branch)
3438

3539
```bash
3640
npm i markdown-exit@legacy
3741
```
3842

39-
### Usage
43+
</details>
4044

41-
#### Named import (recommended)
45+
## Usage
4246

4347
```ts
4448
import { createMarkdownExit } from 'markdown-exit'
4549

4650
// factory helper
4751
const md = createMarkdownExit()
48-
md.render('# markdown-exit')
52+
const html = md.render('# markdown-exit')
4953
```
5054

5155
```ts
5256
import { MarkdownExit } from 'markdown-exit'
5357

5458
// with the `new` keyword
5559
const md = new MarkdownExit()
56-
md.render('# markdown-exit')
60+
const html = md.render('# markdown-exit')
5761
```
5862

59-
#### Default import
63+
<details>
64+
<summary>Default import</summary>
6065

6166
> [!NOTE]
6267
> Default export (with callable constructor support) is retained for markdown-it compatibility, but it may have drawbacks in module interop and tree-shaking.
6368
64-
<details>
65-
<summary>Example</summary>
66-
6769
```ts
6870
import MarkdownExit from 'markdown-exit'
6971

@@ -79,22 +81,22 @@ md.render('# markdown-exit')
7981
```
8082
</details>
8183

82-
#### Documentation
84+
### Guides
8385

84-
Visit markdown-it [API Documentation](https://markdown-it.github.io/markdown-it/) for more info and examples.
86+
- [Markdown Syntax](https://markdown-exit.pages.dev/guide/markdown-syntax.html)
87+
- [Redering](https://markdown-exit.pages.dev/guide/rendering.html)
88+
- [Plugins](https://markdown-exit.pages.dev/guide/plugins.html)
8589

86-
### Migrate from markdown-it
90+
## Migrate from markdown-it
8791

88-
markdown-exit is designed to be a drop-in replacement for markdown-it with enhancements. After installing markdown-exit, simply update your imports:
92+
Drop-in replacement for markdown-it with enhancements, see [Migration Guide](https://markdown-exit.pages.dev/guide/migrate-from-markdown-it.html) for details.
8993

9094
```diff
9195
- import MarkdownIt from 'markdown-it'
9296
+ import MarkdownExit from 'markdown-exit'
9397
```
9498

95-
Everything else should work as expected. ✨
96-
97-
## References / Thanks
99+
## Credits
98100

99101
This project owes its foundation to the [markdown-it](https://github.com/markdown-it/markdown-it) community and all its [contributors](https://github.com/markdown-it/markdown-it/graphs/contributors).
100102

0 commit comments

Comments
 (0)