https://github.com/webpro/remark-order-reference-links
Remark plugin to order reference links
https://github.com/webpro/remark-order-reference-links
Last synced: about 1 year ago
JSON representation
Remark plugin to order reference links
- Host: GitHub
- URL: https://github.com/webpro/remark-order-reference-links
- Owner: webpro
- License: mit
- Created: 2023-06-08T10:30:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-13T09:48:22.000Z (almost 3 years ago)
- Last Synced: 2025-02-24T21:15:34.646Z (about 1 year ago)
- Language: TypeScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# remark-order-reference-links
Orders reference links and images, starting with `1` as the first link in the
document. Renders the definitions ordered with numbers first, strings last.
Probably you want to use the [remark-reference-links][1] plugin as well. This
makes for a nice combo, resulting in readable prose with readable links.
**Before:**
```markdown
This [remark](https://remark.js.org) plugin orders [reference links][ref] and
 references. Then renders the definitions ordered: numbers
first and [named references][named] last.
[ref]: https://refs.biz
[named]: https://named.com
```
**After:**
```markdown
This [remark][1] plugin orders [reference links][ref] and ![image][2]
references. Then renders the definitions ordered: numbers first and [named
references][named] last.
[1]: https://remark.js.org
[2]: ./logo.svg
[named]: https://named.com
[ref]: https://refs.biz
```
[1]: https://github.com/remarkjs/remark-reference-links