個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
diagram-zoom — zoom and pan for Quarto diagrams
A Quarto filter extension that adds an Enlarge button to every
Mermaid and Graphviz diagram in HTML output. The button opens a full-window viewer where the
diagram can be zoomed and panned — handy for wide flowcharts that a text column squeezes into
illegibility.
Live demo → (the rendered
example.qmd).檢視完整 README ↗A Quarto filter extension that adds an Enlarge button to every Mermaid and Graphviz diagram in HTML output. The button opens a full-window viewer where the diagram can be zoomed and panned — handy for wide flowcharts that a text column squeezes into illegibility.
Live demo → (the rendered example.qmd).
mermaid-format: js and svg) and
Graphviz ({dot} cells). No extra JavaScript library, no network requests._quarto.yml.Run in the project root (or next to a standalone document):
quarto add Lightbridge-KS/[email protected]
quarto add Lightbridge-KS/quarto-diagram-zoom (no tag) installs the current main.
The extension lands in _extensions/ — commit that directory with the project.
Requires Quarto 1.6 or later.
Add the filter to a document's front matter:
---
title: My report
filters:
- diagram-zoom
---
or, for a whole book or website, to _quarto.yml:
project:
type: book
filters:
- diagram-zoom
Every Mermaid and Graphviz diagram then gets the button. There is nothing to configure.
Wrap it in a .no-zoom div:
::: {.no-zoom}
```{mermaid}
flowchart LR
small --> diagram
```
:::
| Input | Action |
|---|---|
| Mouse wheel, trackpad scroll | Zoom at the pointer |
| Trackpad or touchscreen pinch | Zoom at the pinch |
| Drag (mouse, one finger) | Pan |
+ / − · toolbar buttons | Zoom in / out |
0 · Fit | Fit the diagram to the window |
| Arrow keys | Scroll |
Esc · Close · click outside | Close |
| Output | Behaviour |
|---|---|
html documents, websites, books | Enabled |
revealjs and other slide formats | Left untouched (not supported yet) |
| PDF, Word, EPUB, … | Left untouched |
dashboard, email | Pass the HTML check but are untested |
mermaid-format: png — are out of scope;
Quarto's built-in lightbox
covers images.The viewer takes its colours from the page's Bootstrap variables (--bs-body-bg,
--bs-body-color, --bs-border-color, --bs-primary). To override them, set any of these on
:root in your own CSS:
:root {
--dz-bg: #fdfcf8; /* dialog and button background */
--dz-fg: #1d2a30; /* text and icon colour */
--dz-border: #c9d3d1; /* borders */
--dz-accent: #278078; /* focus ring */
--dz-surface: #fff; /* toolbar button background */
}
_extensions/diagram-zoom/diagram-zoom.js and diagram-zoom.css have no Quarto dependency.
On any page:
<link rel="stylesheet" href="diagram-zoom.css">
<script src="diagram-zoom.js"></script>
<script>
DiagramZoom.observe(document); // a button on every top-level <svg>
// or: DiagramZoom.observe(document, { match: (svg) => svg.matches(".diagram svg") });
// or open one directly: DiagramZoom.enlarge(svg, { title: "My diagram" });
</script>
pnpm install
pnpm exec playwright install # once per machine
pnpm run gate # types + versions, render fixtures, Playwright
See AGENTS.md for the architecture invariants and the release process, and CHANGELOG.md for changes.