[go: nahoru, domu]

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

build: update dependency marked to v13 #56397

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

Conversation

angular-robot
Copy link
Collaborator
@angular-robot angular-robot commented Jun 12, 2024

This PR contains the following updates:

Package Type Update Change
marked (source) devDependencies major ^12.0.0 -> ^13.0.0

Release Notes

markedjs/marked (marked)

v13.0.2

Compare Source

Bug Fixes

v13.0.1

Compare Source

Bug Fixes

v13.0.0

Compare Source

Bug Fixes
  • Fix blockquote code continuation (#​3264) (7ab8185)
  • Add parser as a property on the Renderer object (#​3291)
  • Send block text tokens to the text renderer (#​3291)
Features
  • Send token objects to renderers (#​3291) (1ce59ea)
  • Add space renderer that returns empty string by default (#​3291)
  • Add header and align properties to TableCell token (#​3291)
  • Add TableRow token (#​3291)
  • Add Checkbox token (#​3291)
BREAKING CHANGES
  • Add space token after blockquote and hr if there are multiple newlines
  • Send token objects to renderers and move logic to parse tokens from the parser to the renderers.
    • Most extensions that update marked renderers should still work with this version but will break in a future major version.

    • Extensions that change marked renderers will need to be updated and use new option useNewRenderer and accept a token object instead of multiple parameters. See updated Renderer docs

      // v12 renderer extension
      
      const extension = {
        renderer: {
          heading(text, level) {
            // increase level by 1
            return `<h${level + 1}>${text}</h${level + 1}>`;
          }
        }
      };
      
      marked.use(extension);
      // v13 renderer extension
      
      const extension = {
        useNewRenderer: true,
        renderer: {
          heading(token) {
            // increase depth by 1
            const text = this.parser.parseInline(token.tokens);
            const level = token.depth;
            return `<h${level + 1}>${text}</h${level + 1}>`;
          }
        }
      };
      
      marked.use(extension);

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 has been generated by Renovate Bot.

@angular-robot angular-robot added action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release labels Jun 12, 2024
@ngbot ngbot bot added this to the Backlog milestone Jun 12, 2024
@pullapprove pullapprove bot requested a review from josephperrott June 12, 2024 07:05
@thePunderWoman thePunderWoman added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: merge The PR is ready for merge by the caretaker labels Jun 27, 2024
See associated pull request for more information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews adev: preview area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants