Rebuild the vendored marked bundle at 18.0.11 - #123
Conversation
Weekly vendored-dependency check found marked drifted from the 18.0.10 pin in scripts/vendor-marked.sh. Bump the pin and rerun the script so the rebuilt bundle lands with it.
leaf-agent
left a comment
There was a problem hiding this comment.
Verified independently of the PR body, since the whole change rests on the bundle really being upstream: the committed skills/leaf/assets/vendor/marked.esm.js is byte-identical to package/lib/marked.esm.js from npm pack marked@18.0.11, and 18.0.11 preserves the two behaviours messages.js configures — the escaping html renderer override still catches block and inline raw HTML (<script>…</script>, <img src=x onerror=…>, and Vec<T> all escape to their characters) and breaks: true still yields <br> on a single newline. Both suite figures reproduce here: 723 passed / 6 skipped, and 47 in tests/test_render_conversations.py --run-nightly. 18.0.11 is upstream's current release, and the four pins the weekly step covers are the only references to a marked version in the tree.
One thing this week's run surfaced that isn't a change to this PR: the weekly vendored-dependency step in .claude/skills/running-tend/SKILL.md greps four pins — HLJS_VERSION, MARKED_VERSION, PIERRE_VERSION, SHIKI_VERSION — while scripts/CLAUDE.md documents six vendor scripts. MERMAID_VERSION in scripts/vendor-mermaid.sh and PLOT_VERSION in scripts/vendor-plot.sh are watched by neither that step nor .github/dependabot.yml, so they drift with nothing to catch them — which is the same rationale the step gives for the four it does list. Both are current today (mermaid 11.17.2, @observablehq/plot 0.6.17), so this week's "only drift" conclusion holds; the gap is that a future drift in those two goes unseen. Recording it here rather than opening a seventh bot PR — the open queue is already over budget, and this is a coverage gap in the check, not a wrong outward action.
The weekly vendored-dependency check found
markedpinned at 18.0.10 inscripts/vendor-marked.shwhile upstream publishes 18.0.11. The other three pins the check covers —highlight.js11.12.0,@pierre/diffs1.3.6,shiki4.4.3 — are already current, so this is the only drift this week.The fix bumps
MARKED_VERSIONand rerunsscripts/vendor-marked.sh, so the commit carries the rebuiltskills/leaf/assets/vendor/marked.esm.jsrather than the version string alone.vendor-marked.shcopies upstream's single ESM file, so the bundle tracks the version directly and nothing else feeds it.Verified with
uv run pytest tests(723 passed, 6 skipped) and the browser file that owns the bundle's only importer,uv run pytest tests/test_render_conversations.py --run-nightly(47 passed) —skills/leaf/assets/runtime/conversation/messages.jsis the sole placemarked.esm.jsis imported.Upstream 18.0.11 release notes
Patch release, three bug fixes, no API change (v18.0.10...v18.0.11):
inlineTokensrebuilds the reflink-mask preamble per call (#4040)The bundle is minified, so its diff reads as one reflowed line; the header comment moving from
marked v18.0.10tomarked v18.0.11is the readable part.