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

Update dependency markdown-to-jsx to v7.7.0 #1656

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 28, 2024

This PR contains the following updates:

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

Release Notes

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

v7.7.0

Compare Source

Minor Changes
  • 20777bf: Add support for GFM alert-style blockquotes.

    > [!Note]
    > This is a note-flavored alert blockquote. The "Note" text is injected as a `<header>` by
    > default and the blockquote can be styled via the injected class `markdown-alert-note`
    > for example.
Patch Changes
  • 5d7900b: Adjust type signature for <Markdown> component to allow for easier composition.
  • 918b44b: Use newer React.JSX.* namespace instead of JSX.* for React 19 compatibility.
  • 91a5948: Arbitrary HTML no longer punches out pipes when parsing rows. If you absolutely need a pipe character that isn't a table separator, either escape it or enclose it in backticks to trigger inline code handling.
  • 23caecb: Drop encountered ref attributes when processing inline HTML, React doesn't handle it well.

v7.6.2

Compare Source

Patch Changes
  • 0274445: Fix false detection of tables in some scenarios.
  • 69f815e: Handle class attribute from arbitrary HTML properly to avoid React warnings.
  • 857809a: Fenced code blocks are now tolerant to a missing closing sequence; this improves use in LLM scenarios where the code block markdown is being streamed into the editor in chunks.

v7.6.1

Compare Source

Patch Changes
  • 87d8bd3: Handle class attribute from arbitrary HTML properly to avoid React warnings.

v7.6.0

Compare Source

Minor Changes
  • 2281a4d: Add options.disableAutoLink to customize bare URL handling behavior.

    By default, bare URLs in the markdown document will be converted into an anchor tag. This behavior can be disabled if desired.

    <Markdown options={{ disableAutoLink: true }}>
      The URL https://quantizor.dev will not be rendered as an anchor tag.
    </Markdown>
    
    // or
    
    compiler(
      'The URL https://quantizor.dev will not be rendered as an anchor tag.',
      { disableAutoLink: true }
    )
    
    // renders:
    
    <span>
      The URL https://quantizor.dev will not be rendered as an anchor tag.
    </span>
Patch Changes
  • fb3d716: Simplify handling of fallback scenario if a link reference is missing its corresponding footnote.

v7.5.1

Compare Source

Patch Changes
  • b16f668: Fix issue with lookback cache resulting in false detection of lists inside lists in some scenarios
  • 58b96d3: fix: handle empty HTML tags more consistently #​597

v7.5.0

Compare Source

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](javascript:alert("foo"))`}
    </Markdown>
    
    // or
    
    compiler('[foo](javascript:alert("foo"))', {
      sanitizer: (value, tag, attribute) => value,
    })
Patch Changes
  • 553a175: Replace RuleType enum with an object

v7.4.7

Compare Source

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-com for the basis for this fix 🤝

v7.4.6

Compare Source

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)
    
        return result ? '-' + str : result;
      }
    }}

v7.4.5

Compare Source

Patch Changes
  • f5a0079: fix: double newline between consecutive blockquote syntax creates separate blockquotes

    Previously, for consecutive blockquotes they were rendered as one:

    Input

    > Block A.1
    > Block A.2
    
    > Block B.1

    Output

    <blockquote>
      <p>Block A.1</p>
      <p>Block A.2</p>
      <p>Block.B.1</p>
    </blockquote>

    This is not compliant with the GFM spec which states that consecutive blocks should be created if there is a blank line between them.

v7.4.4

Compare Source

Patch Changes
  • 8eb8a13: Handle newlines inside of HTML tags themselves (not just nested children.)
  • c72dd31: Default children to an empty string if no content is passed.
  • 4f752c8: Fix handling of deeply-nested HTML in some scenarios.
  • 1486aa4: Handle extra brackets in links, thanks @​zegl!
  • 1486aa4: Allow a newline to appear within inline formatting like bold, emphasis, etc, thanks @​austingreco!
  • 1486aa4: Starting using changesets
  • fd35402: Fix HTML block regex for custom component scenarios where a nested component shares the same prefix as the parent, e.g. Accordion vs AccordionItem.
  • 1486aa4: Fix support for multi-line footnotes, thanks @​zegl!

v7.4.3

Compare Source

What's Changed

Full Changelog: quantizor/markdown-to-jsx@v7.4.2...v7.4.3

v7.4.2

Compare Source

Re-release 7.4.1 with less existential console screaming

v7.4.1

Compare Source

What's Changed

New Contributors

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


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

Copy link

vercel bot commented Mar 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
graphql-github-io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2024 6:40pm

@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x-lockfile branch from 8dd04ef to ab2122d Compare March 29, 2024 09:57
@renovate renovate bot changed the title Update dependency markdown-to-jsx to v7.4.5 Update dependency markdown-to-jsx to v7.4.6 Apr 5, 2024
@renovate renovate bot changed the title Update dependency markdown-to-jsx to v7.4.6 Update dependency markdown-to-jsx to v7.4.7 Apr 13, 2024
@renovate renovate bot changed the title Update dependency markdown-to-jsx to v7.4.7 fix(deps): update dependency markdown-to-jsx to v7.4.7 May 12, 2024
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x-lockfile branch from ab2122d to 8c953d3 Compare August 1, 2024 18:25
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.4.7 fix(deps): update dependency markdown-to-jsx to v7.5.0 Aug 18, 2024
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.5.0 fix(deps): update dependency markdown-to-jsx to v7.6.0 Nov 12, 2024
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.6.0 fix(deps): update dependency markdown-to-jsx to v7.6.1 Nov 13, 2024
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.6.1 fix(deps): update dependency markdown-to-jsx to v7.6.2 Nov 14, 2024
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.6.2 fix(deps): update dependency markdown-to-jsx to v7.7.0 Nov 20, 2024
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.7.0 Update dependency markdown-to-jsx to v7.7.0 Nov 21, 2024
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