Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade markdown-it-table-of-contents from 0.4.4 to 0.6.0 #29

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

X-oss-byte
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

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 is 4 versions ahead of your current version.

  • The recommended version was released on 3 years ago.

Release notes
Package name: markdown-it-table-of-contents
  • 0.6.0 - 2021-11-12

    The 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:

    1. Gather all headings in a list.
    2. Turn that list into a nested tree.
    3. Generate HTML code based on the nested tree.

    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.

    • Added: Support for markdown-it-attrs (fixes #54)
    • Changed: Respects unexpected nesting order (fixes #55)
    • Changed: Uses anchor targets from existing id attributes (for example, set by markdown-it-attrs or markdown-it-anchor)
    • 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

    Better handling of content "other than text" in headers. I.e links.

  • 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)

    For background see #41

  • 0.4.4 - 2019-04-11

    Adds an optional function for transforming the links created in the TOC.

from markdown-it-table-of-contents GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

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:

Snyk has created this PR to upgrade markdown-it-table-of-contents from 0.4.4 to 0.6.0.

See this package in npm:
markdown-it-table-of-contents

See this project in Snyk:
https://app.snyk.io/org/sammyfilly/project/b2450185-1696-4c5f-8f5d-345132f49c5b?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

stackblitz bot commented May 24, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

changeset-bot bot commented May 24, 2024

⚠️ No Changeset found

Latest commit: 30d9fcf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants