Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

remark-order-reference-links

webpro1.4kISC0.0.3TypeScript support: included

Remark plugin to order reference links

unified, remark, remark-plugin, plugin, markdown, link, image, reference, definition

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 plugin as well. This makes for a nice combo, resulting in readable prose with readable links.

Before:

This [remark](https://remark.js.org) plugin orders [reference links][ref] and
![image](./logo.svg) references. Then renders the definitions ordered: numbers
first and [named references][named] last.

[ref]: https://refs.biz
[named]: https://named.com

After:

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