Obsidian CEO kepano 开源 Mermaid 渲染库 Pele,体积小 6 倍、最快快 500 倍
Obsidian 的 CEO kepano 写了一个 Mermaid 渲染库 Pele,同样的 Mermaid 语法 输出变成可换主题的 SVG ,但是性能和大小都有绝对优势: https://t.c...
Obsidian 的 CEO 自己受不了 Mermaid.js 又大又慢,写了个 Pele,语法通用、体积小 6 倍、快上百倍,还在用 Mermaid 的可以换着试试。
Obsidian CEO kepano 发布了开源图表渲染库 Pele,兼容最新 Mermaid 语法。官方数据称渲染速度比 Mermaid.js 快 100-500 倍,gzip 后体积 230 kB,约为 Mermaid.js 1.6 MB 的 1/6。Pele 无任何依赖,换主题只需改 CSS 变量而无需重新渲染,且能在浏览器和 Node 环境运行。它将以 MIT 协议开源,并从 Obsidian 下一版本开始作为默认图表渲染器。
Obsidian 的 CEO kepano 写了一个 Mermaid 渲染库 Pele,同样的 Mermaid 语法 输出变成可换主题的 SVG ,但是性能和大小都有绝对优势: https://t.c...
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! Your browser does not support the video tag. 🔗 View on Twitter 🔗 View Quoted Tweet 💬 3 🔄 0 ❤️ 14 👀 987 📊 6 ⚡