[Snyk] Upgrade markdown-to-jsx from 7.3.2 to 7.4.7#117
Open
syofyanzuhad wants to merge 1 commit intomainfrom
Open
[Snyk] Upgrade markdown-to-jsx from 7.3.2 to 7.4.7#117syofyanzuhad wants to merge 1 commit intomainfrom
syofyanzuhad wants to merge 1 commit intomainfrom
Conversation
Snyk has created this PR to upgrade markdown-to-jsx from 7.3.2 to 7.4.7. See this package in npm: markdown-to-jsx See this project in Snyk: https://app.snyk.io/org/syofyanzuhad/project/1f53cc93-0d11-4a8d-a249-9ee80f1cb017?utm_source=github&utm_medium=referral&page=upgrade-pr
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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-to-jsx from 7.3.2 to 7.4.7.
ℹ️ 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 8 versions ahead of your current version.
The recommended version was released on 3 months ago.
Release notes
Package name: markdown-to-jsx
-
7.4.7 - 2024-04-13
- 7603248: Fix parsing isolation of individual table cells.
- f9328cc: Improved block html detection regex to handle certain edge cases that cause extreme slowness. Thank you @ devbrains-com for the basis for this fix 🤝
-
7.4.6 - 2024-04-05
-
import { slugify } from 'markdown-to-jsx';
-
7.4.5 - 2024-03-22
-
> Block A.1
-
7.4.4 - 2024-03-21
- Brackets in link text by @ zegl in #551
- Multiline footnotes by @ zegl in #553
- fix: multi-line emphasis by @ austingreco in #550
- fix: gracefully handle missing image references by @ quantizor in #554
- chore: add changesets by @ quantizor in #555
- fix: handle newlines inside HTML tag brackets by @ quantizor in #557
- fix: html block regex prefix conflict by @ quantizor in #558
- Version Packages by @ github-actions in #556
- @ zegl made their first contribution in #551
- @ austingreco made their first contribution in #550
- @ github-actions made their first contribution in #556
-
7.4.3 - 2024-03-13
- fix: restore x-browser stable sort logic in #548 (fixes unclosed HTML tags that showed up for some edge cases)
-
7.4.2 - 2024-03-12
-
7.4.1 - 2024-01-29
- Update README.md by @ majman in #534
- Automatically strip YAML front matter by @ varnerac in #538
- @ majman made their first contribution in #534
- @ varnerac made their first contribution in #538
-
7.4.0 - 2024-01-01
import { Markdown, RuleType } from 'markdown-to-jsx'
-
7.3.2 - 2023-08-05
from markdown-to-jsx GitHub release notesPatch Changes
Patch Changes
a9e5276: Browsers assign element with
idto 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 anidofanalyticsexists in the page.In this change, we export the
slugifyfunction 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
What's Changed
Full Changelog: v7.4.2...v7.4.3
Re-release 7.4.1 with less existential console screaming
What's Changed
New Contributors
Full Changelog: v7.4.0...v7.4.1
Happy New Year! 🎆
markdown-to-jsx v7.4 features a new option
renderRule! — From the README:Supply your own rendering function that can selectively override how rules are rendered (note, this is different than
options.overrideswhich operates at the HTML tag level and is more general). You can use this functionality to do pretty much anything with an established AST node; here's an example of selectively overriding the "codeBlock" rule to process LaTeX syntax using the@ matejmazur/react-katexlibrary:import TeX from '@ matejmazur/react-katex'
const exampleContent =
'Some important formula:\n\n
latex\nmathbb{N} = { a in mathbb{Z} : a > 0 }\n\n'function App() {
return (
<Markdown
children={exampleContent}
options={{
renderRule(next, node, renderChildren, state) {
if (node.type === RuleType.codeBlock && node.lang === 'latex') {
return (
<TeX as="div" key={state.key}>{String.raw
<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">node</span><span class="pl-kos">.</span><span class="pl-c1">text</span><span class="pl-kos">}</span></span>}</TeX>)
}
)
}
The README docs around syntax highlighting have also been updated with sample code.
With the new year comes a push toward v8. Performance will be a top priority, reducing the complexity of the library's regexes to increase throughput for SSR use-cases and ideally eliminate rare but frustrating issues like catastrophic backtracking. In addition, the library will be pivoting into more of a pure compiler model, with a React adapter offered and ones added for other major frameworks as well. The idea is anywhere you can run JS, you can use [secret new library name].
Stay tuned and thanks for being part of the journey ✌🏼
Here's to a great 2024 🍾
markdown-to-jsx is maintained by @ quantizor, buy him a coffee
Full Changelog: v7.3.2...v7.4.0
fix(types): path to esm types in "exports"
Full Changelog: v7.3.1...v7.3.2
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: