Skip to content

chore(deps): bump mdast-util-to-markdown to 2.2.2 - #9899

Merged
waleedlatif1 merged 1 commit into
stagingfrom
chore/deps-mdast-to-markdown
Nov 11, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
chore/deps-mdast-to-markdown

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Bump mdast-util-to-markdown 2.1.2 → 2.2.2 (direct dependency of apps/docs). The lockfile still holds a single deduped copy, so this also upgrades the serializer behind remark-stringify in apps/sim (Markdown export image rewriting) and the mdast-util-gfm* / mdast-util-mdx* extensions.
  • Upstream fixes in the range: no more needless escaping of intraword _ (snake_case instead of snake\_case), attention next to astral characters/emoji, escaping inside autolinks, & in fenced-code info/meta, "escape after unsafe character", html kinds, and a quadratic position-lookup fix. 2.2.0 adds optional before/after/unicode fields to Unsafe patterns, which is additive.
  • No Sim code changes. apps/docs/package.json is part of the docs compile cache's pipeline hash, so the cached .md output regenerates with the new version.

Type of Change

  • Other: dependency upgrade

Testing

I wrote a scratch harness that imports Sim's real entry points: docs serializeMarkdown and compileDocument, apps/sim's createMarkdownExport (assets passed as buffers), and a remark-stringify processor configured the same way as markdown-export.ts. I ran it on 2.1.2 and on 2.2.2 and diffed the outputs.

  • Tricky corpus (26 cases: intraword _, * next to punctuation, emoji, autolinks/bare URLs, &/entities, code spans, tables, nested/task lists, inline and block HTML, footnotes, existing escapes):
    • Most changes drop unneeded \_ escapes.
    • Fenced-code info now escapes & (title="a\&b"); the parsed meta is unchanged.
    • Image titles may escape [ or a trailing _; the decoded alt/title is unchanged.
    • 2.1.2 had a real bug with apps/sim's unsafe config: the text \# not a heading serialized as # not a heading, which turns it into a heading. 2.2.2 keeps the escape, so that case now round-trips.
    • No new escapes appeared in visible text. No case that round-tripped before stopped round-tripping, and the docs serializer stays idempotent.
  • All 507 docs pages through compileDocument: 213 pages changed, with 0 errors.
    • 3,690 of the 3,691 changed lines differ only by removed \_ escapes.
    • When re-parsed, 212 of the 213 changed pages give an mdast tree identical to the 2.1.2 output.
    • The remaining page has a GFM autolink inside a table cell. There 2.1.2 doubled the backslashes in the URL; 2.2.2 emits one, which is closer to the source.
  • Performance: whole-corpus serialization takes about 1.55s on 2.1.2 and about 2.45s on 2.2.2. Scaling is linear in document size on both (1x/4x/16x). The cost is build-time only and cached.
  • apps/sim lib/uploads/server/markdown-export.test.ts: 19/19 pass.
  • bun install --frozen-lockfile is clean. The lockfile diff touches only this package; its two new transitive dependencies were already in the lockfile.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • No new warnings introduced

🤖 Generated with Claude Code

@waleedlatif1
waleedlatif1 requested a review from a team as a code owner November 11, 2026 21:25
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 11, 2026 9:30pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This dependency upgrade appears safe to merge; no actionable issues were found.

Summary

Upgrades mdast-util-to-markdown from 2.1.2 to 2.2.2.

  • Docs and Markdown exports now use serializer version 2.2.2.

Reviews (1) · Last reviewed commit: "chore(deps): bump mdast-util-to-markdown..." · Reviewed by Greptile

This branch was successfully deployed

1 active deployment
Preview — 1f3f259a Deployed Nov 11, 2026 by vercel[bot]
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.

1 participant