Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
gatsby-remark-reference-footnotes
Advanced tools
Gatsby plugin using remark to generate footnotes.
npm i gatsby-remark-reference-footnotes
group-include
string?
— default: default
If a footnote reference starts with :groupname:
the output can be filtered by this group-name.
reference-link-prefix
string?
— default: ↑
Footnote: in link before reference number
reference-link-suffix
string?
— default: .
Footnote: in link after reference number
reference-text-prefix
string?
— default: ''
Footnote: text before reference link
reference-text-suffix
string?
— default: ' '
Footnote: text after reference link
reference-link-position
string?
— default: start
– options: start
|end
Footnote-Reference: should the reference link be at the start
or end
inline-link-prefix
string?
— default: ''
Footnote-Reference: in link before inline number
inline-link-suffix
string?
— default: ''
Footnote-Reference: in link after inline number
inline-text-prefix
string?
— default: ''
Footnote-Reference: text before inline link
inline-text-suffix
string?
— default: ''
Footnote-Reference: text after inline link
Generate footnotes:
```references
# This code block gets replaced with footnotes
```
If you like to overwrite the global settings in place (camelCase or kebab-case):
```references
# This code block gets replaced with footnotes
group-include: fig
inline-link-prefix: ' Fig. '
inline-link-suffix: '.'
inline-text-prefix: ' '
inline-text-suffix: ''
reference-link-position: end
reference-link-prefix: ' Fig. '
reference-link-suffix: '.⇡'
reference-text-prefix: ' '
reference-text-suffix: ''
```
Global configurations can be set in gatsby-config.js
.
module.exports = ({ root }) => ({
plugins: [
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-reference-footnotes`,
options: {
groupInclude: 'default',
inlineLinkPrefix: '',
inlineLinkSuffix: '',
inlineTextPrefix: '',
inlineTextSuffix: '',
referenceLinkPosition: 'start',
referenceLinkPrefix: '↑ ',
referenceLinkSuffix: '.',
referenceTextPrefix: '',
referenceTextSuffix: ' '
},
}
],
},
},
],
})
Text with inline footnote[^here the reference].
![Cat](http://placekitten.com/g/200/300)
*This is a cat [^:fig:From placekitten.com]*
Text with reference footnote[^test].
<!-- refs -->
[^:fig:test]: This is the named reference
## Footnotes
```references
# gets repalced with footnotes
```
## Figures
```references
# gets repalced with footnotes
group-include: fig
inline-link-prefix: 'Fig. '
reference-link-position: end
reference-link-prefix: ' Fig. '
reference-link-suffix: ' ⇡'
reference-text-prefix: ' '
```
Text with inline footnote1.
This is a cat Fig. 1
Text with reference footnote2.
↑ 1. here the reference
From placekitten.com Fig. 1 ⇡
FAQs
gatsby remark plugin to generate footnotes
The npm package gatsby-remark-reference-footnotes receives a total of 1 weekly downloads. As such, gatsby-remark-reference-footnotes popularity was classified as not popular.
We found that gatsby-remark-reference-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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.