Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
登录
Mermaid JSDoc Viewer for GitHub 预览

Mermaid JSDoc Viewer for GitHub 作者: Guillaume Ongenae

Previews Mermaid diagrams written inside JSDoc comments (or Markdown fences) while you browse GitHub. In source files, pull requests, commits and compare views. Shows before/after when a diff changes the diagram. No login, no data collected.

可在 Android™ 版 Firefox 上使用可在 Android™ 版 Firefox 上使用
0(0 条评价)0(0 条评价)
1 个用户1 个用户
下载 Firefox 并安装扩展
下载文件
扫码在 Android 版 Firefox 中打开此扩展

扩展元数据

屏幕截图
关于此扩展
Documenting architecture or flow logic with a ```mermaid block inside a JSDoc comment is a nice way to keep diagrams next to the code they describe — but GitHub only renders it as a fenced code block, not a diagram, whether you're reading the source or reviewing a diff. This extension adds a small badge next to the line number of every such block so you can preview or open the diagram without leaving the page or copy-pasting into an external tool.

  • Scans /** ... */ JSDoc comments in .js/.jsx/.ts/.tsx files, and plain fenced blocks in .md/.markdown/.mdx files, for ```mermaid code blocks — on blob (source file) pages, and on PR "Files changed", commit and compare diff pages
  • Overlays a small 📊 badge next to the line number of each detected block; click it to open a zoomable/pannable preview (via mermaid.ink), which also links to the full mermaid.live editor
  • On diff pages, if the diagram itself was edited (not just surrounding code), the badge turns into 🔀 and clicking it shows the diagram before and after side by side — a red-tinted "Before" pane and a green-tinted "After" pane, each with its own "Open in Mermaid Live" link
  • Preview supports scroll-to-zoom, drag-to-pan, double-click-to-reset, and a +/−/⟳ toolbar
  • Works on GitHub's Turbo-driven navigation and lazy-loaded diffs — badges refresh automatically as you browse between files or scroll
  • Light and dark mode support

This is an independent, third-party project. It is not affiliated with, endorsed by, or sponsored by GitHub, Inc. or the Mermaid project (mermaid.js.org).
评分 0(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
0
4
0
3
0
2
0
1
0
尚无评价
权限与数据

必要权限:

  • 访问您在 github.com 的数据

收集的数据:

  • 开发者称此扩展无需收集数据。
详细了解
更多信息
附加组件链接
  • 主页
  • 用户支持网站
  • 支持邮箱
  • 复制附加组件 ID
版本
1.0.0
大小
53.97 KB
上次更新
3 个月前 (2026年9月4日)
相关分类
  • 网页开发
许可证
MIT 许可证
隐私政策
阅读此附加组件的隐私政策
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

下载

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

最新版本

  • Nightly
  • Beta

商用版 Firefox

  • Enterprise

社区

  • Connect
  • Contribute
  • Developer

关注

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • 隐私
  • Cookie
  • 法律

本站内容以知识共享署名-相同方式共享 v3.0 或任何更新版本授权(除非另有注明)。Android 系 Google LLC 的商标。