Commit 3043f56
committed
fix: update mermaid diagram rendering in extra.js to use new API
- Refactored the mermaid rendering logic to utilize the latest API for generating diagrams.
- Improved error handling by displaying the error message directly instead of using a string property.
- Ensured that the diagram's HTML is updated correctly after rendering.
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>1 parent 97b3ad8 commit 3043f56
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
| 441 | + | |
440 | 442 | | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | 443 | | |
445 | 444 | | |
446 | 445 | | |
447 | 446 | | |
448 | 447 | | |
449 | 448 | | |
450 | | - | |
451 | | - | |
452 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
453 | 455 | | |
454 | 456 | | |
455 | 457 | | |
456 | | - | |
| 458 | + | |
457 | 459 | | |
458 | 460 | | |
459 | 461 | | |
| |||
0 commit comments