# rehype-footnotes-title

> This plugin adds a `title` attribute to the footnote links, mainly for accessibility purpose.

Latest version **2.0.1** (published 2024-04-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install rehype-footnotes-title
pnpm add rehype-footnotes-title
yarn add rehype-footnotes-title
bun add rehype-footnotes-title
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2024-04-27 |
| First published | 2017-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 237 |
| Author | Victor Felder |
| Maintainers | situphen, talone |
| Keywords | remark |

## Links

- npm: https://www.npmjs.com/package/rehype-footnotes-title
- Repository: https://github.com/zestedesavoir/zmarkdown.git#master
- Homepage: https://github.com/zestedesavoir/zmarkdown/tree/master#readme
- Issues: https://github.com/zestedesavoir/zmarkdown/issues
- npm.io page: https://npm.io/package/rehype-footnotes-title

## Dependencies (1)

- [unist-util-visit](https://npm.io/package/unist-util-visit.md) ^2.0.3

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 2.0.1 (latest) — 2024-04-27
- 2.0.0 — 2021-02-14
- 1.0.0 — 2020-02-03
- 0.0.32 — 2019-08-29
- 0.0.31 — 2019-07-27
- 0.0.30 — 2019-04-14
- 0.0.29 — 2019-02-04
- 0.0.28 — 2018-11-23
- 0.0.27 — 2018-10-04
- 0.0.26 — 2018-08-09
- 0.0.25 — 2018-07-22
- 0.0.24 — 2018-07-20
- 0.0.23 — 2018-03-06
- 0.0.22 — 2018-01-20
- 0.0.21 — 2018-01-19
- … 15 more at https://npm.io/package/rehype-footnotes-title/versions

## README

This plugin adds a `title` attribute to the footnote links, mainly for accessibility purpose.

```diff
 <div class="footnotes">
   <hr>
   <ol>
     <li id="fn-1">
       <p>Some clever joke</p>
-       <a href="#fnref-1" class="footnote-backref">↩</a>
+       <a href="#fnref-1" class="footnote-backref" title="Jump to reference">↩</a>
     </li>
   </ol>
 </div>
```

Usage:

* `.use(footnotesTitles, 'Jump to reference')`
* `.use(footnotesTitles, 'Going back to footnote with id $id')`
* If `$id` is found in the string, it gets replaced with the footnote identifier.

---
_Source: https://npm.io/package/rehype-footnotes-title · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
