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')
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
Patch Changes
a9e5276: Browsers assign element with id to the global scope using the value as the variable name. E.g.: <h1 id="analytics"> can be referenced via window.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 an id of analytics 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.
import { slugify } from 'markdown-to-jsx';
options={{
slugify: str => {
let result = slugify(str)
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')
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
Patch Changes
a9e5276: Browsers assign element with id to the global scope using the value as the variable name. E.g.: <h1 id="analytics"> can be referenced via window.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 an id of analytics 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.
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)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/StatisticsFinland/PxVisualizer/network/alerts).
Bumps markdown-to-jsx to 7.5.0 and updates ancestor dependencies markdown-to-jsx, @storybook/addon-essentials and @storybook/blocks. These dependencies need to be updated together.
Updates
markdown-to-jsx
from 7.3.2 to 7.5.0Release notes
Sourced from markdown-to-jsx's releases.
... (truncated)
Changelog
Sourced from markdown-to-jsx's changelog.
... (truncated)
Commits
3a04b9e
Version Packages (#600)62a16f3
feat: allow composer to adjust sanitization (#564) (#579)553a175
refactor: replace RuleType enum with a const (#539) (#594)acd970d
Version Packages (#571)a502174
fix: handle incomplete table-like syntax better7603248
fix: table cell parsing isolationf9328cc
fix: adjusted block html regex to avoid perf issuesdcc457e
chore: revert prettierede3cd8
Version Packages (#567)a9e5276
Exportslugify
function (#566)Updates
@storybook/addon-essentials
from 8.1.3 to 8.3.5Release notes
Sourced from
@storybook/addon-essentials
's releases.... (truncated)
Changelog
Sourced from
@storybook/addon-essentials
's changelog.... (truncated)
Commits
b9c7f90
Bump version from "8.3.4" to "8.3.5" [skip ci]20ab887
Bump version from "8.3.3" to "8.3.4" [skip ci]e159e49
Bump version from "8.3.2" to "8.3.3" [skip ci]ee03ab0
Bump version from "8.3.1" to "8.3.2" [skip ci]43accbc
Bump version from "8.3.0" to "8.3.1" [skip ci]7e94ba6
Bump version from "8.3.0-beta.5" to "8.3.0" [skip ci]bce7d70
Bump version from "8.3.0-beta.4" to "8.3.0-beta.5" [skip ci]cce24a0
Bump version from "8.3.0-beta.3" to "8.3.0-beta.4" [skip ci]daf6159
Bump version from "8.3.0-beta.2" to "8.3.0-beta.3" [skip ci]00c1524
Bump version from "8.3.0-beta.1" to "8.3.0-beta.2" [skip ci]Updates
@storybook/blocks
from 8.1.3 to 8.3.5Release notes
Sourced from
@storybook/blocks
's releases.... (truncated)
Changelog
Sourced from
@storybook/blocks
's changelog.... (truncated)
Commits
b9c7f90
Bump version from "8.3.4" to "8.3.5" [skip ci]20ab887
Bump version from "8.3.3" to "8.3.4" [skip ci]e159e49
Bump version from "8.3.2" to "8.3.3" [skip ci]ee03ab0
Bump version from "8.3.1" to "8.3.2" [skip ci]43accbc
Bump version from "8.3.0" to "8.3.1" [skip ci]7e94ba6
Bump version from "8.3.0-beta.5" to "8.3.0" [skip ci]bce7d70
Bump version from "8.3.0-beta.4" to "8.3.0-beta.5" [skip ci]cce24a0
Bump version from "8.3.0-beta.3" to "8.3.0-beta.4" [skip ci]daf6159
Bump version from "8.3.0-beta.2" to "8.3.0-beta.3" [skip ci]00c1524
Bump version from "8.3.0-beta.1" to "8.3.0-beta.2" [skip ci]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