Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Upgrade Mermaid to 11.17.2 (fixes six advisories in 11.12.x)

オープン 初心者向け
#15,042 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
60/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript
領域
frontend, security

調査の方向性

まず dev-docs/upgrade-dependencies.md を読んでください。ここにはベンダリングの手順が書かれています。置き換える対象のバンドルは、unpkg の 11.17.2 dist から取得した src/resources/formats/html/mermaid/ 内の mermaid.js と mermaid.min.js です。新しいレンダラーを確認するため、classDiagram、C4 図、ガントチャートを含むページを、置き換えの前後でレンダリングしてください。両方のファイルが更新され、これらの図が引き続き描画されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

diagrams-mermaid maintenance

quarto-cli vendors Mermaid 11.12.0 in src/resources/formats/html/mermaid/. Every rendered HTML page that uses Mermaid ships it. Six advisories affect all 11.12.x releases, and they're fixed in 11.14.1 or 11.16.1:

  • GHSA-c4c3-pg64-4m4v
  • GHSA-6x64-9x62-f2gx
  • GHSA-87f9-hvmw-gh4p
  • GHSA-xcj9-5m2h-648r
  • GHSA-ghcm-xqfw-q4vr
  • GHSA-6m6c-36f7-fhxh

They cover config prototype pollution, CSS/classDef and HTML injection, and an infinite loop in Gantt charts. 11.17.2 has none of them.

Proposal: bump to 11.17.2. That would match the VS Code extension, which moved its notebook renderer and its diagram preview to 11.17.2 in quarto-dev/quarto#1189. Both now run ahead of the CLI's Mermaid version.

As in dev-docs/upgrade-dependencies.md, get dist/mermaid.js and dist/mermaid.min.js from https://unpkg.com/[email protected]/ and copy them into src/resources/formats/html/mermaid/.

Things to know about 11.13 to 11.17:

  • These releases mostly add syntax (new diagram types and shapes, extra directives), so existing diagrams should keep working.
  • One visible change: in 11.17, classDiagram and C4 diagrams moved to Mermaid's unified (v2) renderer, so they'll look somewhat different.
  • 11.17 builds no longer embed name:"mermaid",version:"…" in the bundle. Anything that sniffs the version from the file needs another pattern; the extension's test now matches the renderer.draw(…, "X.Y.Z" literal.
  • mermaid.min.js grows from 2.75 MB to 3.57 MB.
主要言語
JavaScript
スター
6.1k
フォーク
466
平均マージ
20時間 35分
マージ済み PR(30日)
75

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quarto-dev/quarto-cli のほかの issue

quarto-dev/quarto-cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。