ipywidgets
ipywidgets copied to clipboard
Bump markdown-to-jsx from 7.2.1 to 7.5.0 in /ui-tests
Bumps markdown-to-jsx from 7.2.1 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.sanitizeris passed by the composer.By default a lightweight URL sanitizer function is provided to avoid common attack vectors that might be placed into the
hrefof 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 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("foo"))} </Markdown>// or
compiler('foo', { sanitizer: (value, tag, attribute) => value, })
Patch Changes
- 553a175: Replace RuleType enum with an object
v7.4.7
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-comfor the basis for this fix 🤝v7.4.6
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 expectanalytics.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 differentid.import { slugify } from 'markdown-to-jsx';options={{ slugify: str => { let result = slugify(str)
... (truncated)
Changelog
Sourced from markdown-to-jsx's changelog.
7.5.0
Minor Changes
62a16f3: Allow modifying HTML attribute sanitization when
options.sanitizeris passed by the composer.By default a lightweight URL sanitizer function is provided to avoid common attack vectors that might be placed into the
hrefof 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 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("foo"))} </Markdown>// or
compiler('foo', { sanitizer: (value, tag, attribute) => value, })
Patch Changes
- 553a175: Replace RuleType enum with an object
7.4.7
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-comfor the basis for this fix 🤝7.4.6
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 expectanalytics.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 differentid.import { slugify } from 'markdown-to-jsx';options={{
... (truncated)
Commits
3a04b9eVersion Packages (#600)62a16f3feat: allow composer to adjust sanitization (#564) (#579)553a175refactor: replace RuleType enum with a const (#539) (#594)acd970dVersion Packages (#571)a502174fix: handle incomplete table-like syntax better7603248fix: table cell parsing isolationf9328ccfix: adjusted block html regex to avoid perf issuesdcc457echore: revert prettierede3cd8Version Packages (#567)a9e5276Exportslugifyfunction (#566)- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill 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.