Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
gatsby-remark-numbered-footnotes
Advanced tools
Readme
This is a plugin for gatsby-transformer-remark
that converts footnote reference links to sequential numbers.
It’s a lightweight wrapper around remark-numbered-footnotes
to make it work with Gatsby.
yarn add gatsby-remark-numbered-footnotes
In gatsby-config.js
, add:
module.exports = {
plugins: [
{
resolve: 'gatsby-transformer-remark',
options: {
+ plugins: [
+ 'gatsby-remark-numbered-footnotes',
+ ],
},
},
],
};
In Remark, it’s possible to add footnotes in Markdown like this:
This is normal body copy.[^also] It includes a couple footnotes.[^thing]
[^also]:
This is a footnote.
[^thing]:
This is another footnote.
By default, this will generate the following HTML:
<p>
This is normal body copy.
<sup id="fnref-also">
<a href="#fn-also" class="footnote-ref">also</a>
</sup>
It includes a couple footnotes.
<sup id="fnref-thing">
<a href="#fn-thing" class="footnote-ref">thing</a>
</sup>
</p>
<div class="footnotes">
<hr>
<ol>
<li id="fn-also">
<p>This is a footnote.</p>
<a href="#fnref-also" class="footnote-backref">↩</a>
</li>
<li id="fn-thing">
<p>This is another footnote.</p>
<a href="#fnref-thing" class="footnote-backref">↩</a>
</li>
</ol>
</div>
With gatsby-remark-numbered-footnotes
, the markup will change to:
<p>
This is normal body copy.
- <sup id="fnref-also">
+ <sup id="fnref-1">
- <a href="#fn-also" class="footnote-ref">also</a>
+ <a href="#fn-1" class="footnote-ref">1</a>
</sup>
It includes a couple footnotes.
- <sup id="fnref-thing">
+ <sup id="fnref-2">
- <a href="#fn-thing" class="footnote-ref">thing</a>
+ <a href="#fn-2" class="footnote-ref">2</a>
</sup>
</p>
<div class="footnotes">
<hr>
<ol>
- <li id="fn-also">
+ <li id="fn-1">
<p>This is a footnote.</p>
- <a href="#fnref-also" class="footnote-backref">↩</a>
+ <a href="#fnref-1" class="footnote-backref">↩</a>
</li>
- <li id="fn-thing">
+ <li id="fn-2">
<p>This is another footnote.</p>
- <a href="#fnref-thing" class="footnote-backref">↩</a>
+ <a href="#fnref-2" class="footnote-backref">↩</a>
</li>
</ol>
</div>
FAQs
Replaces user-defined footnote strings with numbered references.
The npm package gatsby-remark-numbered-footnotes receives a total of 182 weekly downloads. As such, gatsby-remark-numbered-footnotes popularity was classified as not popular.
We found that gatsby-remark-numbered-footnotes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.