Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

fix(deps): update dependency markdown-to-jsx to v7.5.0 #31

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 18, 2023

This PR contains the following updates:

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

Release Notes

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

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

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 '@&#8203;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


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.

@netlify
Copy link

netlify bot commented Mar 18, 2023

Deploy Preview for static-cms-preact ready!

Name Link
🔨 Latest commit 36c6e1f
🔍 Latest deploy log https://app.netlify.com/sites/static-cms-preact/deploys/66c24fed9eef930008b2727d
😎 Deploy Preview https://deploy-preview-31--static-cms-preact.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.2.0 fix(deps): update dependency markdown-to-jsx to v7.2.1 Jun 2, 2023
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from 1e66221 to 8f43b3a Compare June 2, 2023 15:18
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.2.1 fix(deps): update dependency markdown-to-jsx to v7.3.0 Aug 3, 2023
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from 8f43b3a to 81ae448 Compare August 3, 2023 13:57
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.3.0 fix(deps): update dependency markdown-to-jsx to v7.3.1 Aug 3, 2023
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from 81ae448 to 7ce4882 Compare August 3, 2023 15:36
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.3.1 fix(deps): update dependency markdown-to-jsx to v7.3.2 Aug 5, 2023
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from 7ce4882 to bef9224 Compare August 5, 2023 15:49
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from bef9224 to f5c6c4f Compare January 1, 2024 06:37
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.3.2 fix(deps): update dependency markdown-to-jsx to v7.4.0 Jan 1, 2024
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from f5c6c4f to e46bbe1 Compare January 29, 2024 23:39
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.4.0 fix(deps): update dependency markdown-to-jsx to v7.4.1 Jan 29, 2024
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.4.1 fix(deps): update dependency markdown-to-jsx to v7.4.2 Mar 12, 2024
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from e46bbe1 to 0b14c8c Compare March 12, 2024 17:55
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.4.2 fix(deps): update dependency markdown-to-jsx to v7.4.3 Mar 13, 2024
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from 0b14c8c to a686cba Compare March 13, 2024 01:05
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from a686cba to f582c85 Compare March 21, 2024 05:25
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.4.3 fix(deps): update dependency markdown-to-jsx to v7.4.4 Mar 21, 2024
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from f582c85 to 05cc060 Compare March 22, 2024 21:06
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.4.4 fix(deps): update dependency markdown-to-jsx to v7.4.5 Mar 22, 2024
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from 05cc060 to c2c2654 Compare April 5, 2024 20:14
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.4.5 fix(deps): update dependency markdown-to-jsx to v7.4.6 Apr 5, 2024
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from c2c2654 to 4045175 Compare April 13, 2024 08:02
@renovate renovate bot changed the title fix(deps): update dependency markdown-to-jsx to v7.4.6 fix(deps): update dependency markdown-to-jsx to v7.4.7 Apr 13, 2024
@renovate renovate bot force-pushed the renovate/markdown-to-jsx-7.x branch from 4045175 to 36c6e1f Compare August 18, 2024 19:47
@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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants