Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 5, 2024 via pnpm

markdown-it-anchor 8.6.7

Header anchors for markdown-it.
Package summary
Share
0
issues
4
licenses
8
MIT
1
Python-2.0
1
BSD-2-Clause
1
Unlicense
Package created
18 Mar 2015
Version published
16 Feb 2023
Maintainers
2
Total deps
11
Direct deps
2
License
Unlicense

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
@types/linkify-it@5.0.0
@types/markdown-it@14.1.1
@types/mdurl@2.0.0
linkify-it@5.0.0
markdown-it@14.1.0
mdurl@2.0.0
punycode.js@2.3.1
uc.micro@2.1.0

Python License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
state-changes
1 Packages, Including:
argparse@2.0.1

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
entities@4.5.0

The Unlicense

Public Domain
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
private-use
modify
Cannot
include-copyright
hold-liable
Must
1 Packages, Including:
markdown-it-anchor@8.6.7
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of markdown-it-anchor 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@types/markdown-it14.1.171.38 kBMIT
prod peer
markdown-it14.1.0749.41 kBMIT
prod peer

Visualizations

Frequently Asked Questions

What does markdown-it-anchor do?

Markdown-it-anchor is a plugin for the markdown-it library. It enhances the functionality of the library by adding an id attribute to headings in markdown content. This improves navigation and accessibility of the content by allowing each section to be uniquely referenced. Optionally, it can also add permalinks to these headings, making it easier for users to link to specific sections of the content. Markdown-it-anchor brings improvement to the way markdown content is displayed and navigated, thereby potentially enhancing your website's SEO.

How do you use markdown-it-anchor?

To use the markdown-it-anchor plugin, you first need to install it via npm, and then incorporate it into your JavaScript code. Here's a basic usage example:

const markdownIt = require('markdown-it')();
const markdownItAnchor = require('markdown-it-anchor');

// use the plugin with markdown-it
markdownIt.use(markdownItAnchor, { level: 2 });

// then use markdownIt to convert markdown to HTML
const html = markdownIt.render(yourMarkdownString);

In this example, the plugin is used with a level option set to 2, meaning that anchors will be applied to all headers except h1. The opts object you pass to the use function allows you to customize the behavior of the plugin; you can set other properties such as permalink, slugify, callback, getTokensText, tabIndex, and uniqueSlugStartIndex to further customize the plugin's behavior.

Where are the markdown-it-anchor docs?

The documentation for markdown-it-anchor is located on GitHub, specifically in the README file of the project's repository. The README file provides a comprehensive over of the plugin, including its features, how to use it, and how to customize it. For more details, you can check the project on GitHub.