Obsidian 的 CEO kepano 写了一个 Mermaid 渲染库 Pele,同样的 Mermaid 语法 输出变成可换主题的 SVG ,但是性能和大小都有绝对优势: pele.run gzip 后 230 kB vs Mermaid.js 的 1.6 MB 大约小 6 倍 渲染官方说最多快 500 倍 换肤是改 CSS 变量,不用重新渲染 浏览器和 node 都能跑 之后Obsidian 会用它默认渲染图,还在用 Mermaid.js 可以去试试看 kepano @kepano This is Pele, my new rendering library for diagrams and charts, compatible with the latest Mermaid syntax. - 100-500× faster than mermaid.js - 6× smaller bundle - No dependencies - Easy to theme - Responsive to device width In pursuit of making Obsidian insanely fast and cohesively designed, I always found the Mermaid library to be too big, too slow, and too hard to theme. Pele will be the new renderer in the next version of Obsidian, but you can start using it now. Pele [ˈpɛlɛ] is named after the goddess of volcanoes and fire. It's open source under the MIT license. Try the playground! 🔗 View on Twitter 🔗 View Quoted Tweet
媒体保存失败:[Errno 104] Connection reset by peer
媒体保存失败:timed out
媒体保存失败:[Errno 104] Connection reset by peer
媒体保存失败:[Errno 104] Connection reset by peer
▶ 打开视频地址