feat(renderer): add echarts diagram block rendering - #4158
Open
heartacker wants to merge 6 commits into
Open
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Contributor
Author
heartacker
force-pushed
the
feat/echarts-render
branch
from
August 24, 2026 13:11
d89e9c2 to
fc8df7e
Compare
Contributor
Author
|
rebase done. |
heartacker
force-pushed
the
feat/echarts-render
branch
from
August 26, 2026 03:03
fc8df7e to
14be935
Compare
The fresh-diagram reset ran in a separate [svg] passive effect, which on slow CI runners could flush after a user's first zoom click and silently swallow the scale change. Move the reset inline next to setSvg so it lands in the same commit as the rendered diagram.
heartacker
force-pushed
the
feat/echarts-render
branch
from
August 29, 2026 08:13
c6ce9d0 to
acd8bd8
Compare
Contributor
Author
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Pull Request
Description
This PR adds support for rendering Apache ECharts code blocks in markdown (
echarts,echart,chart), providing dynamic theme synchronization, responsive resizing, and a unified toolbar UX.Key features:
echartsUtils.ts):option = { ... },const option = ...;,export default ...).isLikelyEChartsOptionbefore attempting rendering.EchartsBlock.tsx):isDark).ResizeObserver.MermaidBlockandWavedromBlock(<echarts>tag,Preview / Sourcetoggle links, error indicators,PreviewOpenpanel button, andCopybutton).echartsandzrenderinto dedicated vendor chunk inelectron.vite.config.ts.Type of Change
feat— New feature (non-breaking change which adds functionality)Atomic PR Checklist (Rule 1)
<type>(<scope>): <subject>(English)Local Checks (Rule 3)
bun run format— formatting passesbun run lint— no lint errorsbunx tsc --noEmit— no type errorsbunx vitest run— tests passbun run i18n:types+node scripts/check-i18n.js)Runtime Verification