Skip to content

Commit

Permalink
chore(deps): bump markdown-to-jsx from 7.2.1 to 7.5.0 (#11697)
Browse files Browse the repository at this point in the history
Bumps [markdown-to-jsx](https://github.com/quantizor/markdown-to-jsx)
from 7.2.1 to 7.5.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/quantizor/markdown-to-jsx/releases">markdown-to-jsx's
releases</a>.</em></p>
<blockquote>
<h2>v7.5.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p>62a16f3: Allow modifying HTML attribute sanitization when
<code>options.sanitizer</code> is passed by the composer.</p>
<p>By default a lightweight URL sanitizer function is provided to avoid
common attack vectors that might be placed into the <code>href</code> 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 called <code>sanitizer</code>.</p>
<p>This can be overridden and replaced with a custom sanitizer if
desired via <code>options.sanitizer</code>:</p>
<pre lang="jsx"><code>// sanitizer in this situation would receive:
// ('javascript:alert(&quot;foo&quot;)', 'a', 'href')
<p>&lt;Markdown options={{ sanitizer: (value, tag, attribute) =&gt;
value }}&gt;

{<code>[foo](https://github.com/quantizor/markdown-to-jsx/blob/HEAD/javascript:alert(&amp;quot;foo&amp;quot;))</code>}
&lt;/Markdown&gt;</p>
<p>// or</p>
<p>compiler('<a
href="https://github.com/quantizor/markdown-to-jsx/blob/HEAD/javascript:alert(%22foo%22)">foo</a>',
{
sanitizer: (value, tag, attribute) =&gt; value,
})
</code></pre></p>
</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li>553a175: Replace RuleType enum with an object</li>
</ul>
<h2>v7.4.7</h2>
<h3>Patch Changes</h3>
<ul>
<li>7603248: Fix parsing isolation of individual table cells.</li>
<li>f9328cc: Improved block html detection regex to handle certain edge
cases that cause extreme slowness. Thank you <a
href="https://github.com/devbrains-com"><code>@​devbrains-com</code></a>
for the basis for this fix 🤝</li>
</ul>
<h2>v7.4.6</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p>a9e5276: Browsers assign element with <code>id</code> to the global
scope using the value as the variable name. E.g.: <code>&lt;h1
id=&quot;analytics&quot;&gt;</code> can be referenced via
<code>window.analytics</code>.
This can be a problem when a name conflict happens. For instance, pages
that expect <code>analytics.push()</code> to be a function will stop
working if the an element with an <code>id</code> of
<code>analytics</code> exists in the page.</p>
<p>In this change, we export the <code>slugify</code> function so that
users can easily augment it.
This can be used to avoid variable name conflicts by giving the element
a different <code>id</code>.</p>
<pre lang="js"><code>import { slugify } from 'markdown-to-jsx';
<p>options={{
slugify: str =&gt; {
let result = slugify(str)</p>
<p></code></pre></p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/quantizor/markdown-to-jsx/blob/main/CHANGELOG.md">markdown-to-jsx's
changelog</a>.</em></p>
<blockquote>
<h2>7.5.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p>62a16f3: Allow modifying HTML attribute sanitization when
<code>options.sanitizer</code> is passed by the composer.</p>
<p>By default a lightweight URL sanitizer function is provided to avoid
common attack vectors that might be placed into the <code>href</code> 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 called <code>sanitizer</code>.</p>
<p>This can be overridden and replaced with a custom sanitizer if
desired via <code>options.sanitizer</code>:</p>
<pre lang="jsx"><code>// sanitizer in this situation would receive:
// ('javascript:alert(&quot;foo&quot;)', 'a', 'href')
<p>;&lt;Markdown options={{ sanitizer: (value, tag, attribute) =&gt;
value }}&gt;

{<code>[foo](https://github.com/quantizor/markdown-to-jsx/blob/main/javascript:alert(&amp;quot;foo&amp;quot;))</code>}
&lt;/Markdown&gt;</p>
<p>// or</p>
<p>compiler('<a
href="https://github.com/quantizor/markdown-to-jsx/blob/main/javascript:alert(%22foo%22)">foo</a>',
{
sanitizer: (value, tag, attribute) =&gt; value,
})
</code></pre></p>
</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li>553a175: Replace RuleType enum with an object</li>
</ul>
<h2>7.4.7</h2>
<h3>Patch Changes</h3>
<ul>
<li>7603248: Fix parsing isolation of individual table cells.</li>
<li>f9328cc: Improved block html detection regex to handle certain edge
cases that cause extreme slowness. Thank you <a
href="https://github.com/devbrains-com"><code>@​devbrains-com</code></a>
for the basis for this fix 🤝</li>
</ul>
<h2>7.4.6</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p>a9e5276: Browsers assign element with <code>id</code> to the global
scope using the value as the variable name. E.g.: <code>&lt;h1
id=&quot;analytics&quot;&gt;</code> can be referenced via
<code>window.analytics</code>.
This can be a problem when a name conflict happens. For instance, pages
that expect <code>analytics.push()</code> to be a function will stop
working if the an element with an <code>id</code> of
<code>analytics</code> exists in the page.</p>
<p>In this change, we export the <code>slugify</code> function so that
users can easily augment it.
This can be used to avoid variable name conflicts by giving the element
a different <code>id</code>.</p>
<pre lang="js"><code>import { slugify } from 'markdown-to-jsx';
<p>options={{
</code></pre></p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/quantizor/markdown-to-jsx/commit/3a04b9ed86d67a3b72c59e605aac00aa3e8f59d5"><code>3a04b9e</code></a>
Version Packages (<a
href="https://redirect.github.com/quantizor/markdown-to-jsx/issues/600">#600</a>)</li>
<li><a
href="https://github.com/quantizor/markdown-to-jsx/commit/62a16f3e239069cf38de5da646618723dd1bbf8a"><code>62a16f3</code></a>
feat: allow composer to adjust sanitization (<a
href="https://redirect.github.com/quantizor/markdown-to-jsx/issues/564">#564</a>)
(<a
href="https://redirect.github.com/quantizor/markdown-to-jsx/issues/579">#579</a>)</li>
<li><a
href="https://github.com/quantizor/markdown-to-jsx/commit/553a17507f3e23edfe9ee28b24cdcd68588c0fe2"><code>553a175</code></a>
refactor: replace RuleType enum with a const (<a
href="https://redirect.github.com/quantizor/markdown-to-jsx/issues/539">#539</a>)
(<a
href="https://redirect.github.com/quantizor/markdown-to-jsx/issues/594">#594</a>)</li>
<li><a
href="https://github.com/quantizor/markdown-to-jsx/commit/acd970dc7be8f2390ed916fe1b1cf0874a8534f6"><code>acd970d</code></a>
Version Packages (<a
href="https://redirect.github.com/quantizor/markdown-to-jsx/issues/571">#571</a>)</li>
<li><a
href="https://github.com/quantizor/markdown-to-jsx/commit/a502174ece06fec06433fff6dc8bee92ba0c4c46"><code>a502174</code></a>
fix: handle incomplete table-like syntax better</li>
<li><a
href="https://github.com/quantizor/markdown-to-jsx/commit/7603248ac2359e214aad20ec1188711242724f76"><code>7603248</code></a>
fix: table cell parsing isolation</li>
<li><a
href="https://github.com/quantizor/markdown-to-jsx/commit/f9328cccd56002e00736c457963afdedc2231715"><code>f9328cc</code></a>
fix: adjusted block html regex to avoid perf issues</li>
<li><a
href="https://github.com/quantizor/markdown-to-jsx/commit/dcc457ecbe8c7ab55862fdfffab94dc35fe38868"><code>dcc457e</code></a>
chore: revert prettier</li>
<li><a
href="https://github.com/quantizor/markdown-to-jsx/commit/ede3cd83af6783daeba84adf468c9597c0365580"><code>ede3cd8</code></a>
Version Packages (<a
href="https://redirect.github.com/quantizor/markdown-to-jsx/issues/567">#567</a>)</li>
<li><a
href="https://github.com/quantizor/markdown-to-jsx/commit/a9e527655b788818d2edd49d6a230857cfc2730f"><code>a9e5276</code></a>
Export <code>slugify</code> function (<a
href="https://redirect.github.com/quantizor/markdown-to-jsx/issues/566">#566</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/quantizor/markdown-to-jsx/compare/v7.2.1...v7.5.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=markdown-to-jsx&package-manager=npm_and_yarn&previous-version=7.2.1&new-version=7.5.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/redwoodjs/redwood/network/alerts).

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Oct 16, 2024
1 parent b8cd6aa commit 74e785d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22413,11 +22413,11 @@ __metadata:
linkType: hard

"markdown-to-jsx@npm:^7.1.8":
version: 7.2.1
resolution: "markdown-to-jsx@npm:7.2.1"
version: 7.5.0
resolution: "markdown-to-jsx@npm:7.5.0"
peerDependencies:
react: ">= 0.14.0"
checksum: 10c0/002ba7c723853c456a4902976d5f5a15d9585bd75dc6ab3add783b4a346e3372327c4fffd7843f30fd5b6550c5fd97e7142330521a5886f8b770db4c61558d61
checksum: 10c0/88213e64afd41d6934fbb70bcea0e2ef1f9553db1ba4c6f423b17d6e9c2b99c82b0fcbed29036dd5b91704b170803d1fae730ab40ae27af5c7994e2717686ebc
languageName: node
linkType: hard

Expand Down

0 comments on commit 74e785d

Please sign in to comment.