Skip to content

chore(deps): bump marked from 12.0.2 to 16.3.0#5057

Closed
dependabot[bot] wants to merge 4 commits intomainfrom
dependabot/npm_and_yarn/marked-16.3.0
Closed

chore(deps): bump marked from 12.0.2 to 16.3.0#5057
dependabot[bot] wants to merge 4 commits intomainfrom
dependabot/npm_and_yarn/marked-16.3.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Sep 15, 2025

Bumps marked from 12.0.2 to 16.3.0.

Release notes

Sourced from marked's releases.

v16.3.0

16.3.0 (2025-09-14)

Features

v16.2.1

16.2.1 (2025-08-27)

Bug Fixes

v16.2.0

16.2.0 (2025-08-18)

Features

v16.1.2

16.1.2 (2025-08-04)

Bug Fixes

  • fix multiline list item adds extra newline to raw (#3735) (e76453e)

v16.1.1

16.1.1 (2025-07-18)

Bug Fixes

  • fix stong and em tokens in angle brackets (#3731) (ad8535c)

v16.1.0

16.1.0 (2025-07-17)

Features

  • add generic types for parser and renderer output (#3722) (39a0ee3)

v16.0.0

16.0.0 (2025-06-27)

... (truncated)

Commits
  • 9a5306d chore(release): 16.3.0 [skip ci]
  • cd2b5f4 feat: add emStrongMask hook (#3749)
  • e3497a5 chore(deps): Bump actions/setup-node from 4 to 5 (#3760)
  • 8ce030a chore(deps-dev): Bump eslint from 9.34.0 to 9.35.0 (#3759)
  • fd0e92a chore(deps-dev): Bump @​semantic-release/release-notes-generator from 14.0.3 t...
  • 93b0155 chore(deps-dev): Bump @​semantic-release/github from 11.0.4 to 11.0.5 (#3757)
  • 7b2d430 docs: add marked-jira to known extensions (#3753)
  • fc8a5d0 chore(release): 16.2.1 [skip ci]
  • 30c6630 fix: allow escaped newline in link text (#3752)
  • 0ccf476 chore(deps-dev): Bump esbuild from 0.25.8 to 0.25.9 (#3750)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Sep 15, 2025
@netlify
Copy link
Copy Markdown

netlify bot commented Sep 15, 2025

Deploy Preview for respec-pr ready!

Name Link
🔨 Latest commit 870b5dc
🔍 Latest deploy log https://app.netlify.com/projects/respec-pr/deploys/6901656fc6c064000825ea99
😎 Deploy Preview https://deploy-preview-5057--respec-pr.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 project configuration.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/marked-16.3.0 branch from a5a37b1 to 47fa13b Compare October 13, 2025 07:05
Bumps [marked](https://github.com/markedjs/marked) from 12.0.2 to 16.3.0.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](markedjs/marked@v12.0.2...v16.3.0)

---
updated-dependencies:
- dependency-name: marked
  dependency-version: 16.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/marked-16.3.0 branch from 47fa13b to 3ecf07e Compare October 13, 2025 07:19
…en-object API

Co-authored-by: marcoscaceres <870154+marcoscaceres@users.noreply.github.com>
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 2, 2026

A newer version of marked exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@marcoscaceres
Copy link
Copy Markdown
Contributor

@copilot, can you see what's going on with the failing tests and have a go at fixing it?

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 5, 2026

@marcoscaceres I've opened a new pull request, #5117, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the project’s Markdown parser dependency (marked) to a new major version and updates the custom Marked renderer adapter in src/core/markdown.js to match the newer renderer API.

Changes:

  • Bump marked dependency (and lockfile) from 12.x to 16.x.
  • Update custom Marked Renderer overrides (code, image, heading) to the token-object method signatures used by newer Marked versions.
  • Add a type-cast workaround for the renderer option in the Marked config.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/core/markdown.js Adapts custom Markdown rendering hooks to Marked v16’s token-based renderer API.
package.json Updates the marked dependency version range.
pnpm-lock.yaml Locks marked (and its metadata) to the updated version.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
"colors": "1.4.0",
"finalhandler": "^2.1.1",
"marked": "^12.0.2",
"marked": "^16.4.0",
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR metadata/title says marked is bumped to 16.3.0, but package.json now pins ^16.4.0. Please align the PR title/description (or the dependency version) so reviewers and release notes match what is actually being shipped.

Copilot uses AI. Check for mistakes.
Comment thread src/core/markdown.js
const config = {
gfm: true,
renderer: new Renderer(),
renderer: /** @type {any} */ (new Renderer()),
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Casting the renderer instance to any disables type checking for the Marked renderer API, which can hide signature/return-type mismatches during this major upgrade. Prefer tightening this to the appropriate Marked renderer type (e.g. MarkedOptions['renderer'] / RendererObject) and/or adding JSDoc types for the overridden methods so config remains type-safe.

Suggested change
renderer: /** @type {any} */ (new Renderer()),
renderer: /** @type {import('marked').MarkedOptions['renderer']} */ (new Renderer()),

Copilot uses AI. Check for mistakes.
marcoscaceres added a commit that referenced this pull request Mar 27, 2026
Update the Renderer subclass to use the token-object API introduced in
marked v13 (methods previously took individual positional args):

  code({ text, lang })         was code(code, infoString, isEscaped)
  image({ href, title, text }) was image(href, title, text)
  heading(token)               was heading(text, level, raw)
    uses this.parser.parseInline(token.tokens) for rendered inline text

Also replace reindent() with a local normalizeIndent() that strips
indentation based on the first non-empty line rather than the minimum
across all lines. marked v16 is stricter CommonMark: HTML indented 4+
spaces is treated as a code block, so sections rendered via data-include
whose inner HTML has col-0 lines (leastIndent=0 in reindent) would end up
escaped inside <pre><code>. normalizeIndent correctly strips the outer
document indentation regardless of inner content.

Closes #5057
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 28, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/marked-16.3.0 branch March 28, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants