[Snyk] Upgrade markdown-it-table-of-contents from 0.4.4 to 0.6.0 #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade markdown-it-table-of-contents from 0.4.4 to 0.6.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version fixes:
npm:string:20170907
Why? Mature exploit, CVSS 5.3
(*) Note that the real score may have changed since the PR was raised.
Release notes
Package name: markdown-it-table-of-contents
-
0.6.0 - 2021-11-12
- Gather all headings in a list.
- Turn that list into a nested tree.
- Generate HTML code based on the nested tree.
- Added: Support for
- Changed: Respects unexpected nesting order (fixes #55)
- Changed: Uses anchor targets from existing id attributes (for example, set by
- Changed: Now nests list correctly if there is a jump (for example: h2, h2, h4 -> h4 is now double-indented)
- Removed: unused tests
-
0.5.2 - 2021-01-27
-
0.5.1 - 2020-11-23
- Exposes link to formatting function
- Adheres to platform EOL in tests
- Security patch
-
0.5.0 - 2020-11-21
- Code updated to use ES5 syntax for easier in-browser use
- Updates the existing format option to render markdown by default
- Removes support for forceFullToc option (potentially BREAKING)
-
0.4.4 - 2019-04-11
from markdown-it-table-of-contents GitHub release notesThe TOC generator was rewritten, because the old on-the-fly generator couldn't deal with unexpected order of headings and double-indentations. It is now a three-step process:
Although all tests pass, this release could introduce some breaking changes for you, if you relied on the old way of doing things. Check the test cases to get a better understanding how this plugin handles various cases.
markdown-it-attrs(fixes #54)markdown-it-attrsormarkdown-it-anchor)Better handling of content "other than text" in headers. I.e links.
For background see #41
Adds an optional function for transforming the links created in the TOC.
Commit messages
Package name: markdown-it-table-of-contents
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs