
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
gitbook-plugin-related-links
Advanced tools
This plugin manages related links for the Markdown files in your Gitbook. It retrieves the title for the links so you can just list the filename and not worry about changing files when your topic titles change.
The plugin takes file names from the front matter of a Markdown file, gets the titles from those files, and generates a related links section at the bottom of the file with links to each of those files. This keeps your related links sections consistent and keeps you from having to hard-code the titles of links to other pages in your Gitbook.
Notes:
.md
, the plugin copies the link to the related links section without changing anything.
In this way you can specify custom link text as usual by using a standard Markdown link, or you can link to an external site by putting in a URL.
However, to keep the YAML legal, you must surround Markdown links with single quotes.
See the example below.Add the plugin to your book.json
:
{
"plugins": [ "related-links" ],
"pluginsConfig": {
"header": "### Related topics"
}
}
Then run gitbook install
.
header
: Specify the heading under which to put the related links.
The plugin adds this heading and an unordered list of links under it at the bottom of the Markdown file.
The default is "### Related topics".Here's a Markdown file with some links in the front matter:
---
relatedLinks:
- myFile.md
- http://gitbook.com
- ../otherfiles/relatedFile.md
- '[My custom link text](someOtherFile.md)'
---
# Here's my file that needs related links
At build time, before Gitbook converts the Markdown to HTML, the plugin gets the link titles from the MD files in the front matter. The resulting file looks like this:
# Here's my file that needs related links
### Related links
- [My special file](myFile.md)
- http://gitbook.com
- [My related file](../otherfiles/relatedFile.md)
- [My custom link text](someOtherFile.md)
To run tests, run these commands:
npm install
npm run test
FAQs
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
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.