Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@nd0ut/remark-bookmarks
Advanced tools
Link manager for Markdown files with remark.
npm:
npm install remark-bookmarks
This module allows you to manage a collection of links across Markdown files; it’s useful for use cases where you need to reference the same source several times across multiple sections of your documentation. Given the following markdown:
remark-bookmarks is on [npm]!
And we require dependencies:
const remark = require('remark')
const remarkBookmarks = require('remark-bookmarks')
We can call remark-bookmarks to provide the missing reference:
const output = remark()
.use(remarkBookmarks, {
bookmarks: {
github: 'https://github.com/remarkjs/remark-bookmarks',
npm: 'https://npmjs.com/package/remark-bookmarks'
}
})
.processSync('remark-bookmarks is on [npm]!')
.toString()
The output of this transform is below.
Note that only the npm link is inserted into this document, to avoid unnecessary references.
remark-bookmarks is on [npm]!
[npm]: https://npmjs.com/package/remark-bookmarks
remark.use(bookmarks[, options])
Manage links.
By default, this module will append all of the references to the bottom of the
Markdown file, which might be problematic if you are using modules that change
whole sections of Markdown.
One such example is remark-license
.
To resolve this, we recommend that you use remark-inline-links
, which
will transform the references into inline links.
options.bookmarks
The URLs to share across Markdown documents (Object.<string>
).
References are case insensitive.
options.overwrite
Pass overwrite: true
to ensure that references are used consistently.
By default (false
), the existing references in the file will take precedence
over anything defined globally.
remark-inline-links
— Transform references and definitions into normal links and imagesremark-defsplit
— Transform links and images into references and definitions with
URI-based identifiersremark-reference-links
— Transform links and images into references and definitionsremark-unlink
— Remove all links, references and definitionsSee contributing.md
in remarkjs/remark
for ways to get
started.
This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.
FAQs
A link manager for Markdown files.
The npm package @nd0ut/remark-bookmarks receives a total of 0 weekly downloads. As such, @nd0ut/remark-bookmarks popularity was classified as not popular.
We found that @nd0ut/remark-bookmarks 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.