Socket
Book a DemoInstallSign in
Socket

rehype-footnotes-title

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-footnotes-title

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

latest
Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
11
120%
Maintainers
2
Weekly downloads
 
Created
Source

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

 <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.

Keywords

remark

FAQs

Package last updated on 27 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts