socious-io / web-app-v2

GNU General Public License v3.0
2 stars 15 forks source link

chore(deps): bump markdown-to-jsx from 7.4.7 to 7.5.0 #841

Closed dependabot[bot] closed 2 months ago

dependabot[bot] commented 2 months ago

Bumps markdown-to-jsx from 7.4.7 to 7.5.0.

Release notes

Sourced from markdown-to-jsx's releases.

v7.5.0

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 called sanitizer.

    This can be overridden and replaced with a custom sanitizer if desired via options.sanitizer:

    // sanitizer in this situation would receive:
    // ('javascript:alert("foo")', 'a', 'href')
    

    <Markdown options={{ sanitizer: (value, tag, attribute) => value }}> {[foo](https://github.com/quantizor/markdown-to-jsx/blob/HEAD/javascript:alert(&quot;foo&quot;))} </Markdown>

    // or

    compiler('foo', { sanitizer: (value, tag, attribute) => value, })

Patch Changes

  • 553a175: Replace RuleType enum with an object
Changelog

Sourced from markdown-to-jsx's changelog.

7.5.0

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 called sanitizer.

    This can be overridden and replaced with a custom sanitizer if desired via options.sanitizer:

    // sanitizer in this situation would receive:
    // ('javascript:alert("foo")', 'a', 'href')
    

    ;<Markdown options={{ sanitizer: (value, tag, attribute) => value }}> {[foo](https://github.com/quantizor/markdown-to-jsx/blob/main/javascript:alert(&quot;foo&quot;))} </Markdown>

    // or

    compiler('foo', { sanitizer: (value, tag, attribute) => value, })

Patch Changes

  • 553a175: Replace RuleType enum with an object
Commits


Dependabot compatibility score

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 commands and options
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 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)
cloudflare-workers-and-pages[bot] commented 2 months ago

Deploying web-app-v2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1bbbc72
Status: ✅  Deploy successful!
Preview URL: https://bf82e216.web-app-v2-eq8.pages.dev
Branch Preview URL: https://dependabot-npm-and-yarn-mark.web-app-v2-eq8.pages.dev

View logs