Skip to content

Commit dc06395

Browse files
authored
markdown: Bump mermaid-rs-renderer to fix flowchart parser panic (#56199)
Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Bumps `mermaid-rs-renderer` to `782b89a7da3f0e91e51f98d00a93acba679be6fb`, which picks up [1jehuang/mermaid-rs-renderer#95](1jehuang/mermaid-rs-renderer#95), fixing a panic with partially typed mermaid. Release Notes: - Fixed a crash in markdown preview when a mermaid flowchart contained a partially-typed parallelogram node like `A[/]` or `A[\]`.
1 parent 31661a8 commit dc06395

2 files changed

Lines changed: 16 additions & 37 deletions

File tree

Cargo.lock

Lines changed: 15 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ markdown_preview = { path = "crates/markdown_preview" }
388388
svg_preview = { path = "crates/svg_preview" }
389389
media = { path = "crates/media" }
390390
menu = { path = "crates/menu" }
391-
mermaid-rs-renderer = { git = "https://github.com/zed-industries/mermaid-rs-renderer", rev = "374db9ead5426697c6c2111151d9f246899bc638", default-features = false }
391+
mermaid-rs-renderer = { git = "https://github.com/zed-industries/mermaid-rs-renderer", rev = "782b89a7da3f0e91e51f98d00a93acba679be6fb", default-features = false }
392392
migrator = { path = "crates/migrator" }
393393
mistral = { path = "crates/mistral" }
394394
multi_buffer = { path = "crates/multi_buffer" }

0 commit comments

Comments
 (0)