Title: chore(deps): bump mdast-util-to-markdown to 2.2.2 by waleedlatif1 · Pull Request #9899 · simstudioai/sim · GitHub
Open Graph Title: chore(deps): bump mdast-util-to-markdown to 2.2.2 by waleedlatif1 · Pull Request #9899 · simstudioai/sim
X Title: chore(deps): bump mdast-util-to-markdown to 2.2.2 by waleedlatif1 · Pull Request #9899 · simstudioai/sim
Description: 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
Open Graph Description: 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 ...
X Description: 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 ...
Opengraph URL: https://github.com/simstudioai/sim/pull/9899
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2a6198c4-f3c2-0d74-9513-201163e31814 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E898:4466C:4E5581:6DC955:6AFB5E4D |
| html-safe-nonce | 62f3855f09e3fa42ed57e0d1fc7e27403dda6104c64379b86ba44c2dc8d560fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODk4OjQ0NjZDOjRFNTU4MTo2REM5NTU6NkFGQjVFNEQiLCJ2aXNpdG9yX2lkIjoiODQxOTE4NzI5NzA2NDAxNzQ4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9218eb849878c1f8782f57595de5ded3143a98776eb7dc7e008e9bd0385fd372 |
| hovercard-subject-tag | pull_request:5266978055 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/9899/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | 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 ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width