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

chore(deps-dev): Bump markdown-to-jsx from 6.11.4 to 7.4.0 #2988

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 15, 2024

Bumps markdown-to-jsx from 6.11.4 to 7.4.0.

Release notes

Sourced from markdown-to-jsx's releases.

v7.4.0

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\nlatex\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()
    },
  }}
/&gt;

)
}

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

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

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

... (truncated)

Commits
  • 34531eb chore: bump version
  • 715e4e9 chore: update docs
  • 8eb74da fix: ensure src prop is sanitized
  • 44122eb chore: switch RuleType back to an enum
  • f665b00 docs: add syntax highlighting example
  • c68b1fb chore: update doc site
  • 20c7a0b refactor: rename content to children
  • c20733a refactor: strongly-type all nodes
  • 79d640b refactor: compile away priority mapping
  • 4b5f1c3 chore: cuter styles
  • Additional commits viewable in compare view

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

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 15, 2024
Bumps [markdown-to-jsx](https://github.com/quantizor/markdown-to-jsx) from 6.11.4 to 7.4.0.
- [Release notes](https://github.com/quantizor/markdown-to-jsx/releases)
- [Changelog](https://github.com/quantizor/markdown-to-jsx/blob/main/CHANGELOG.md)
- [Commits](quantizor/markdown-to-jsx@6.11.4...v7.4.0)

---
updated-dependencies:
- dependency-name: markdown-to-jsx
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/markdown-to-jsx-7.4.0 branch from 7346bcd to 600d8ac Compare October 16, 2024 17:37
Copy link

cypress bot commented Oct 16, 2024

Workday/canvas-kit    Run #7919

Run Properties:  status check passed Passed #7919  •  git commit 1ece305d29 ℹ️: Merge 6d5773986a82fcc9306133663f51317e4b2bb9a9 into e28288691f6ee4a99eabeda3e30e...
Project Workday/canvas-kit
Run status status check passed Passed #7919
Run duration 03m 49s
Commit git commit 1ece305d29 ℹ️: Merge 6d5773986a82fcc9306133663f51317e4b2bb9a9 into e28288691f6ee4a99eabeda3e30e...
Committer dependabot[bot]
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 29
Tests that did not run due to a developer annotating a test with .skip  Pending 24
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 1092
UI Coverage  21.83%
  Untested elements 1634  
  Tested elements 454  
Accessibility  99.18%
  Failed rules  5 critical   5 serious   0 moderate   2 minor
  Failed elements 180  

@alanbsmith alanbsmith merged commit fa261ae into master Oct 21, 2024
19 of 20 checks passed
@alanbsmith alanbsmith deleted the dependabot/npm_and_yarn/markdown-to-jsx-7.4.0 branch October 21, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge dependencies Pull requests that update a dependency file
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants