Update dependency markdown-to-jsx to v7.7.0 #1656
Open
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 contains the following updates:
7.4.0
->7.7.0
Release Notes
quantizor/markdown-to-jsx (markdown-to-jsx)
v7.7.0
Compare Source
Minor Changes
20777bf
: Add support for GFM alert-style blockquotes.Patch Changes
5d7900b
: Adjust type signature for<Markdown>
component to allow for easier composition.918b44b
: Use newerReact.JSX.*
namespace instead ofJSX.*
for React 19 compatibility.91a5948
: Arbitrary HTML no longer punches out pipes when parsing rows. If you absolutely need a pipe character that isn't a table separator, either escape it or enclose it in backticks to trigger inline code handling.23caecb
: Drop encounteredref
attributes when processing inline HTML, React doesn't handle it well.v7.6.2
Compare Source
Patch Changes
0274445
: Fix false detection of tables in some scenarios.69f815e
: Handleclass
attribute from arbitrary HTML properly to avoid React warnings.857809a
: Fenced code blocks are now tolerant to a missing closing sequence; this improves use in LLM scenarios where the code block markdown is being streamed into the editor in chunks.v7.6.1
Compare Source
Patch Changes
87d8bd3
: Handleclass
attribute from arbitrary HTML properly to avoid React warnings.v7.6.0
Compare Source
Minor Changes
2281a4d
: Addoptions.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.
Patch Changes
fb3d716
: Simplify handling of fallback scenario if a link reference is missing its corresponding footnote.v7.5.1
Compare Source
Patch Changes
b16f668
: Fix issue with lookback cache resulting in false detection of lists inside lists in some scenarios58b96d3
: fix: handle empty HTML tags more consistently #597v7.5.0
Compare Source
Minor Changes
62a16f3
: Allow modifying HTML attribute sanitization whenoptions.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
:Patch Changes
553a175
: Replace RuleType enum with an objectv7.4.7
Compare Source
Patch Changes
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 🤝v7.4.6
Compare Source
Patch Changes
a9e5276
: Browsers assign element withid
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
.v7.4.5
Compare Source
Patch Changes
f5a0079
: fix: double newline between consecutive blockquote syntax creates separate blockquotesPreviously, for consecutive blockquotes they were rendered as one:
Input
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.
v7.4.4
Compare Source
Patch Changes
8eb8a13
: Handle newlines inside of HTML tags themselves (not just nested children.)c72dd31
: Defaultchildren
to an empty string if no content is passed.4f752c8
: Fix handling of deeply-nested HTML in some scenarios.1486aa4
: Handle extra brackets in links, thanks @zegl!1486aa4
: Allow a newline to appear within inline formatting like bold, emphasis, etc, thanks @austingreco!1486aa4
: Starting using changesetsfd35402
: Fix HTML block regex for custom component scenarios where a nested component shares the same prefix as the parent, e.g. Accordion vs AccordionItem.1486aa4
: Fix support for multi-line footnotes, thanks @zegl!v7.4.3
Compare Source
What's Changed
Full Changelog: quantizor/markdown-to-jsx@v7.4.2...v7.4.3
v7.4.2
Compare Source
Re-release 7.4.1 with less existential console screaming
v7.4.1
Compare Source
What's Changed
New Contributors
Full Changelog: quantizor/markdown-to-jsx@v7.4.0...v7.4.1
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.