Skip to content

Clean Mermaid 0.1.5

Choose a tag to compare

@github-actions github-actions released this 11 Oct 14:07
· 50 commits to main since this release

English

New

  • The fullscreen viewer opens at the size needed for the diagram at 100%, so it appears at natural scale without zooming first; diagrams larger than the screen are brought into view and fitted on open.
  • You can resize the viewer by dragging any edge or corner (minimum 480 × 360). The diagram's zoom level stays unchanged while you resize.

Fixed

  • Updated the bundled KaTeX to 0.18.10, clearing upstream advisory GHSA-238p-pmpm-9mq7. Diagrams containing $$…$$ math were re-rendered and checked against the previous behavior.

Compatibility

  • The internal class name used by the image preview moved from .cm-media to .cm-media-image. Default appearance is unchanged; adjust only if your own CSS snippet targeted .cm-media directly.
  • Requires desktop Obsidian 1.14.4 or later; bundled Mermaid 12.1.0.

简体中文

新增

  • 全屏查看器按图表 100% 所需的尺寸打开,一打开就是原始比例、不必先手动放大;超出屏幕的大图会先收进视口并做一次适应。
  • 查看器可从任意边或角拖拽调整大小(最小 480 × 360),调整过程中图表的缩放比例保持不变。

修复

  • 内置 KaTeX 升到 0.18.10,消除上游安全公告 GHSA-238p-pmpm-9mq7;含 $$…$$ 数学公式的图表已重新渲染复核,公式显示与升级前一致。

兼容性

  • 图片化预览元素的内部类名由 .cm-media 改为 .cm-media-image。插件默认外观没有变化;只有在自己的 CSS snippet 里直接针对 .cm-media 写过样式时才需要同步改名。
  • 需要桌面版 Obsidian 1.14.4 及以上;自带 Mermaid 12.1.0。