Repository navigation
Releases
Releases · aStudyMachine/clean-mermaid
Clean Mermaid 0.1.11
English
Fixed
- Turning Enable Clean Mermaid rendering off and on again now updates diagrams in Live Preview
immediately, without scrolling or editing the note. - Changing Double-click action now updates the "double-click to expand" hint on open cards right
away; panning and then double-clicking inside the expanded view no longer closes it by mistake. - Changing PNG resolution, interface language or toolbar visibility no longer resets a diagram you
had zoomed or panned; changing the auto-fit mode or maximum upscale still re-fits. - With Render as image off, Mermaid
clicklinks in a diagram work again. - Only one card's More actions menu can be open at a time.
- Copying an image now reports the real reason on failure instead of claiming the source was copied.
- Deleting a custom theme now falls back to a built-in theme in settings, and stale theme references
from older settings are repaired on upgrade.
Compatibility
- Requires desktop Obsidian 1.14.4 or newer; Mermaid 12.1.0.
简体中文
修复
- 在设置里切换「启用 Clean Mermaid 渲染」后,实时预览里的图表立即更新,不再需要滚动或编辑笔记才恢复。
- 改了「双击操作」后,卡片上的「双击图表也能展开」提示会立即出现或消失;在展开查看里拖动平移后马上双击,
不再被误判成关窗。 - 调整 PNG 分辨率、界面语言或工具条显示方式,不再把已经放大或拖动过的图表弹回自适应;改「自适应方式」
「最大放大倍率」时仍会重新适配。 - 关掉「图片化渲染」后,Mermaid 的
click链接恢复可点击。 - 同一时刻只会打开一张卡片的「更多操作」菜单。
- 复制图片失败时会说明真实原因,不再提示「已改为复制源码」却什么都没复制。
- 删除自定义主题后,相关设置自动回到内置默认主题;升级时也会自动修复指向已删除主题的旧设置。
兼容性
- 需要桌面版 Obsidian 1.14.4 及以上;Mermaid 版本为 12.1.0。
Clean Mermaid 0.1.10
English
Fixed
- In reading view (and in
%% cm:plain %%blocks), clicking a diagram no longer opens Obsidian's built-in image preview — a black overlay in which the diagram's labels were almost unreadable. A click or a right-click now does nothing, matching the behaviour you get with the plugin disabled. Double-clicking a diagram and the expand button are unaffected. - The expanded viewer no longer follows the PNG background setting. Set it to Transparent and exports stay transparent, but the viewer always paints the theme colour — the preview is no longer see-through and hard to read.
- Updated a dependency to clear a published security advisory.
Compatibility
- Requires desktop Obsidian 1.14.4 or later; Mermaid version 12.1.0.
简体中文
修复
- 阅读视图(以及
%% cm:plain %%块)里单击图表不再弹出 Obsidian 自带的图片预览:此前单击或右键会打开一个黑底预览层,图上的说明文字几乎看不清;现在单击与关闭插件时一样,没有任何反应。双击图表或点右上角展开按钮不受影响。 - 展开查看器的画布不再跟随「PNG 背景」设置:把「PNG 背景」设为「透明」后导出仍是透明底,但查看器里始终铺主题底色,不再出现整个预览区透明、图看不清的情况。
- 更新安全相关依赖,消除一条已公开的漏洞公告。
兼容性
- 需要桌面版 Obsidian 1.14.4 及以上;Mermaid 版本为 12.1.0。
Clean Mermaid 0.1.9
English
New
- Double-click a diagram to open it expanded; double-click anywhere in that window to close it again.
Changed
- The expand button is now labelled "Expand diagram" instead of "Open in fullscreen" — it opens a viewport-sized overlay, not a system-level fullscreen.
- Double-clicking a card no longer resets the zoom: it opens the expanded view. Settings → Interaction → Double-click action switches the gesture back to Reset zoom or turns it off; setups that already had double-click-to-reset disabled keep it disabled.
- Reset zoom is still available from the
⋯menu and from the zoom badge in the card corner. - Inside the expanded view, double-click now closes the window; turn adaptive fit back on with the toolbar button or the
0key.
Fixed
- Hovering a card's toolbar buttons showed two tooltips at once; each button now shows a single one.
Compatibility
- Requires Obsidian 1.14.4 or newer on desktop. Bundles Mermaid 12.1.0.
简体中文
新增
- 双击图表即可展开查看;在展开窗口里双击任意位置即可关闭。
变更
- 展开按钮改称「展开图表」(原「全屏打开」)—— 它打开的是铺满视口的浮层窗口,不是系统级全屏。
- 双击图表不再复位缩放,改为展开查看。设置 → 交互 → 双击操作 可以改回「复位缩放」或设为「不响应」;
此前已关掉双击复位的配置继续保持关闭。 - 复位缩放仍可从
⋯菜单与卡片右下角的缩放百分比徽标进入。 - 展开窗口里的双击改为关闭窗口;重新开启自适应用工具条按钮或
0键。
修复
- 悬停卡片工具条按钮时会同时弹出两个提示气泡;现在每个按钮只弹一个。
兼容性
- 需要桌面版 Obsidian 1.14.4 及以上;Mermaid 版本为 12.1.0。
Clean Mermaid 0.1.8
English
New
- The fullscreen viewer now opens filling the viewport and fits the diagram automatically; small diagrams are enlarged (up to 800%). The toolbar's adaptive-fit button is a two-state switch: manual zoom or pan turns it off, and clicking the button, double-clicking, or pressing
0turns it back on.
Changed
- Inline diagrams now default to a maximum upscale of 120% (was 150%) and a maximum height of 100% of the viewport (was 80%).
Fixed
- Changing a custom theme's light/dark mode now updates rendered diagrams immediately.
Compatibility
- Requires desktop Obsidian 1.14.4 or later; bundled Mermaid version is 12.1.0.
简体中文
新增
- 全屏查看器改为铺满视口打开并自动装下图表,小图会被放大(上限 800%)。工具条的自适应按钮改为两态开关:手动缩放或平移后自动关闭,点按钮、双击或按
0可重新开启。
变更
- 内联图表默认最大放大倍率调整为 120%(原 150%),最大高度调整为视口 100%(原 80%)。
修复
- 修改自定义主题的明暗模式后,已渲染图表会立即更新。
兼容性
- 需要桌面版 Obsidian 1.14.4 及以上;自带 Mermaid 12.1.0。
Clean Mermaid 0.1.7
English
Changed
- Decision nodes (the diamond drawn by
A{...}) are now sized to their label: a one-line label no longer sits inside a large empty diamond, so diagrams come out more compact. You can switch back to Mermaid's native square diamond under Settings → Rendering → Decision node shape;%% cm:plain %%blocks always use the native square.
Fixed
- Fixed the layout of the "Custom themes" section in the settings panel: with several custom themes, the description text no longer squeezes the theme list and the "Add custom theme" row into narrow columns.
Compatibility
- Requires desktop Obsidian 1.14.4 or later; bundled Mermaid 12.1.0.
简体中文
变更
- 判断节点(
A{...}画出的菱形)改为贴着文字量绘制:单行短标签不再被裹进一大片空白,图表更紧凑。可在「设置 → 渲染 → 判断节点形状」改回 Mermaid 原生正方形;%% cm:plain %%块恒用原生画法。
修复
- 修复设置面板「自定义主题」一节的布局:自定义主题较多时,说明文字不再把主题列表与「新增自定义主题」行挤成窄条。
兼容性
- 需要桌面版 Obsidian 1.14.4 及以上;自带 Mermaid 12.1.0。
Clean Mermaid 0.1.6
English
Internal maintenance update; no user-visible behavior changes.
Compatibility
- Requires desktop Obsidian 1.14.4 or later; bundled Mermaid 12.1.0.
简体中文
内部维护更新,无用户可见的功能或行为变化。
兼容性
- 需要桌面版 Obsidian 1.14.4 及以上;自带 Mermaid 12.1.0。
Clean Mermaid 0.1.5
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-mediato.cm-media-image. Default appearance is unchanged; adjust only if your own CSS snippet targeted.cm-mediadirectly. - 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。
Clean Mermaid 0.1.4
English
Changed
- Nodes in all diagram types now have a more compact appearance by default, with no shadow and less padding; this also applies to
%% cm:plain %%diagrams. To restore shadows, add%%{init: {"look":"neo"}}%%inside the code block. - Flowchart and state diagram node widths better fit their labels, with less premature wrapping of longer text.
- Regular settings can now be found through Obsidian's settings search.
Fixed
- When adding a custom theme, the selected template is preserved after the settings panel refreshes.
Compatibility
- Requires desktop Obsidian 1.14.4 or later; bundled Mermaid 12.1.0.
简体中文
变更
- 所有图种的节点默认去掉投影、缩小内边距,外观更紧凑;
%% cm:plain %%同样生效。如需恢复投影,在代码块内添加%%{init: {"look":"neo"}}%%。 - 流程图与状态图的节点宽度更贴合文字,较长标签不再过早折行。
- 常规设置项可通过 Obsidian 的设置搜索找到。
修复
- 新增自定义主题时,所选模板在设置面板刷新后保持不变。
兼容性
- 需要桌面版 Obsidian 1.14.4 及以上;自带 Mermaid 12.1.0。
Clean Mermaid 0.1.3
English
Internal maintenance update; no user-visible behavior changes.
Compatibility
- Requires desktop Obsidian 1.14.4 or later; bundled Mermaid 12.1.0.
简体中文
内部维护更新,无用户可见的功能或行为变化。
兼容性
- 需要桌面版 Obsidian 1.14.4 及以上;自带 Mermaid 12.1.0。
Clean Mermaid 0.1.2
English
Changed
- Simplified the settings panel, with the language setting at the top.
Fixed
- Fixed diagram height jumps when scrolling long notes in live preview.
Compatibility
- Minimum Obsidian version is now 1.14.4 (up from 1.4.0).
- Desktop only; mobile is not supported.
- Bundled Mermaid 12.1.0.
简体中文
变更
- 设置面板简化分节,语言设置直接置顶。
修复
- 修复实时预览中滚动长文时图表高度跳动的问题。
兼容性
- 最低 Obsidian 版本由 1.4.0 调整为 1.14.4。
- 仅支持桌面版,不支持移动端。
- 自带 Mermaid 12.1.0。