Gathering detailed insights and metrics for gatsby-remark-footnotes
Gathering detailed insights and metrics for gatsby-remark-footnotes
Gathering detailed insights and metrics for gatsby-remark-footnotes
Gathering detailed insights and metrics for gatsby-remark-footnotes
gatsby-remark-numbered-footnotes
Replaces user-defined footnote strings with numbered references.
gatsby-remark-reference-footnotes
gatsby remark plugin to generate footnotes
gatsby-plugin-remark-footnotes
`remark-footnotes` plugin for `gatsby-transformer-remark`
gatsby-remark-numbered-footnotes-patched
Replaces user-defined footnote strings with numbered references.
npm install gatsby-remark-footnotes
Typescript
Module System
Node Version
NPM Version
69.1
Supply Chain
89.8
Quality
74.8
Maintenance
50
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
4 Stars
13 Commits
2 Watchers
4 Branches
2 Contributors
Updated on Jul 17, 2024
Latest Version
0.0.8
Package Id
gatsby-remark-footnotes@0.0.8
Unpacked Size
10.11 kB
Size
4.08 kB
File Count
4
NPM Version
6.12.0
Node Version
12.13.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
This is a Gatsby Remark plugin that aims to customize the text and style of footnotes in case you want to adhere to the Wikipedia style, ^
, front of the footnote-type link.
With npm:
npm install --save gatsby-remark-footnotes
or with yarn, if that's more your style:
yarn add gatsby-remark-footnotes
1// In gatsby-config.js 2plugins: [ 3 { 4 resolve: `gatsby-transformer-remark`, 5 options: { 6 plugins: [ 7 { 8 resolve: `gatsby-remark-footnotes`, 9 options: { 10 footnoteBackRefPreviousElementDisplay: "inline", 11 footnoteBackRefDisplay: "inline", 12 footnoteBackRefInnerText: "^", // Defaults to: "↩" 13 //use if you want the Wikipedia style ^ link without an underline beneath it 14 footnoteBackRefAnchorStyle: `text-decoration: none;`, 15 //use "front" for Wikipedia style ^ links 16 footnoteBackRefInnerTextStartPosition: "front", 17 useFootnoteMarkerText: false, // Defaults to false 18 useCustomDivider: "<hr/><strong>References:</strong>" // Defaults to <hr/> 19 } 20 } 21 ] 22 } 23 } 24];
footnoteBackRefPreviousElementDisplay
: the "previous" element is always a <p>
tag. Change the CSS display property of it with this prop. Can be omitted if you prefer to not change the display property from the block
default, or you have a stylesheet overriding the default already.
footnoteBackRefDisplay
: the footnote "back ref" refers to the <a>
tag that can be clicked on to bring a user back to the footnote they originated from. Set both this and footnoteBackRefPreviousElementDisplay
to inline
to have them appear side-by-side. Can be omitted, same as above.
footnoteBackRefInnerText
: defaults to ↩
. You can use whatever you'd like. Go nuts, replace it with a 👋!
footnoteBackRefAnchorStyle
: As in the example above, if you use ^
you'll want to override the text-decoration
property (and potentially other ones, like color, if that's your thing) to conform to the Wikipedia style. Can be omitted.
footnoteBackRefInnerTextStartPosition
: front
for Wikipedia style, otherwise can be omitted.
useFootnoteMarkerText
: set to true
to use footnote's "marker" (how the footnote is introduced between the Markdown brackets) as the footnote "heading" introducing the footnote in the actual footnote section. Markdown by default auto-numbers footnotes, regardless of how they are introduced; if you use a series of footnotes like so [^1] [^second] [^third] the footnotes will auto number to 1, 2, 3 in the footnote sections. By setting this flag to true
, the second and third footnotes would be introduced: second.
and third.
useCustomDivider
: defaults to <hr/>
, can be replaced with HTML of the user's choosing. If set to ""
it will remove the horizontal rule.
This plugin appends class
names to the elements it produces so that you can further stylize / override the existing CSS.
<p>
tag: footnote-paragraph
class<li>
tag: footnote-list-item
class<a>
tag: footnote-backref
classuseFootnoteMarkerText
config option) <span>
tag: footnote-marker-text
classThis plugin removes nodes from the AST Markdown tree that gatsby-transformer-remark
uses to otherwise massage your markdown.
This means that other functionality you might rely on from other Gatsby plugins also working on your markdown will probably not work as expected for your footnotes. E.G. you use gatsby-external-link
- it's not going to pick up on anchor tags present in your footnotes. This plugin automatically adds target="_blank" rel="noopener noreferrer
properties to your anchor tags.
Contributions are welcome!
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 1/9 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More