Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency markdown-to-jsx to v7.4.0 [security] #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 15, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
markdown-to-jsx (source) 7.1.7 -> 7.4.0 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2024-21535

Versions of the package markdown-to-jsx before 7.4.0 are vulnerable to Cross-site Scripting (XSS) via the src property due to improper input sanitization. An attacker can execute arbitrary code by injecting a malicious iframe element in the markdown.


Release Notes

quantizor/markdown-to-jsx (markdown-to-jsx)

v7.4.0

Compare Source

Happy New Year! 🎆

markdown-to-jsx v7.4 features a new option renderRule! — From the README:

Supply your own rendering function that can selectively override how rules are rendered (note, this is different than options.overrides which operates at the HTML tag level and is more general). You can use this functionality to do pretty much anything with an established AST node; here's an example of selectively overriding the "codeBlock" rule to process LaTeX syntax using the @matejmazur/react-katex library:

import { Markdown, RuleType } from 'markdown-to-jsx'
import TeX from '@​matejmazur/react-katex'

const exampleContent =
  'Some important formula:\n\n```latex\nmathbb{N} = { a in mathbb{Z} : a > 0 }\n```\n'

function App() {
  return (
    <Markdown
      children={exampleContent}
      options={{
        renderRule(next, node, renderChildren, state) {
          if (node.type === RuleType.codeBlock && node.lang === 'latex') {
            return (
              <TeX as="div" key={state.key}>{String.raw`${node.text}`}</TeX>
            )
          }

          return next()
        },
      }}
    />
  )
}

The README docs around syntax highlighting have also been updated with sample code.

With the new year comes a push toward v8. Performance will be a top priority, reducing the complexity of the library's regexes to increase throughput for SSR use-cases and ideally eliminate rare but frustrating issues like catastrophic backtracking. In addition, the library will be pivoting into more of a pure compiler model, with a React adapter offered and ones added for other major frameworks as well. The idea is anywhere you can run JS, you can use [secret new library name].

Stay tuned and thanks for being part of the journey ✌🏼
Here's to a great 2024 🍾

markdown-to-jsx is maintained by @​quantizor, buy him a coffee

Full Changelog: quantizor/markdown-to-jsx@v7.3.2...v7.4.0

v7.3.2

Compare Source

fix(types): path to esm types in "exports"

Full Changelog: quantizor/markdown-to-jsx@v7.3.1...v7.3.2

v7.3.1

Compare Source

What's Changed

  • add dev-time error if trying to provide bad input

Full Changelog: quantizor/markdown-to-jsx@v7.3.0...v7.3.1

v7.3.0

Compare Source

What's Changed

New Contributors

Full Changelog: quantizor/markdown-to-jsx@v7.2.1...v7.3.0

v7.2.1

Compare Source

What's Changed

New Contributors

Full Changelog: quantizor/markdown-to-jsx@v7.2.0...v7.2.1

v7.2.0

Compare Source

What's Changed

New Contributors

Full Changelog: quantizor/markdown-to-jsx@v7.1.9...v7.2.0

v7.1.9

Compare Source

What's Changed

New Contributors

Full Changelog: quantizor/markdown-to-jsx@v7.1.8...v7.1.9

v7.1.8

Compare Source

What's Changed

New Contributors

Full Changelog: quantizor/markdown-to-jsx@v7.1.7...v7.1.8


Configuration

📅 Schedule: Branch creation - "" (UTC), 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants