[Snyk] Upgrade markdown-to-jsx from 7.3.2 to 7.7.0 #155
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.
Snyk has created this PR to upgrade markdown-to-jsx from 7.3.2 to 7.7.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 14 versions ahead of your current version.
The recommended version was released on a month ago.
Issues fixed by the recommended upgrade:
SNYK-JS-MARKDOWNTOJSX-6258886
Release notes
Package name: markdown-to-jsx
Minor Changes
20777bf: Add support for GFM alert-style blockquotes.
Patch Changes
<Markdown>
component to allow for easier composition.React.JSX.*
namespace instead ofJSX.*
for React 19 compatibility.ref
attributes when processing inline HTML, React doesn't handle it well.Patch Changes
class
attribute from arbitrary HTML properly to avoid React warnings.Patch Changes
class
attribute from arbitrary HTML properly to avoid React warnings.Minor Changes
2281a4d: Add
options.disableAutoLink
to customize bare URL handling behavior.By default, bare URLs in the markdown document will be converted into an anchor tag. This behavior can be disabled if desired.
{ disableAutoLink: true }
)
// renders:
<span>
The URL https://quantizor.dev will not be rendered as an anchor tag.
</span>">
Patch Changes
Patch Changes
Minor Changes
62a16f3: Allow modifying HTML attribute sanitization when
options.sanitizer
is passed by the composer.By default a lightweight URL sanitizer function is provided to avoid common attack vectors that might be placed into the
href
of an anchor tag, for example. The sanitizer receives the input, the HTML tag being targeted, and the attribute name. The original function is available as a library export calledsanitizer
.This can be overridden and replaced with a custom sanitizer if desired via
options.sanitizer
:sanitizer: (value, tag, attribute) => value,
})">
Patch Changes
Patch Changes
Patch Changes
a9e5276: Browsers assign element with
id
to the global scope using the value as the variable name. E.g.:<h1 id="analytics">
can be referenced viawindow.analytics
.This can be a problem when a name conflict happens. For instance, pages that expect
analytics.push()
to be a function will stop working if the an element with anid
ofanalytics
exists in the page.In this change, we export the
slugify
function so that users can easily augment it.This can be used to avoid variable name conflicts by giving the element a different
id
.options={{
slugify: str => {
let result = slugify(str)
}
}}
Patch Changes
f5a0079: fix: double newline between consecutive blockquote syntax creates separate blockquotes
Previously, for consecutive blockquotes they were rendered as one:
Input
> Block A.2
> Block B.1
Output
This is not compliant with the GFM spec which states that consecutive blocks should be created if there is a blank line between them.
What's Changed
New Contributors
Full Changelog: v7.4.3...v7.4.4
Important
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: