Skip to content

Commit

Permalink
Escape special character within description to avoid conflict with me…
Browse files Browse the repository at this point in the history
…rmaid syntax
  • Loading branch information
haixuanTao committed Jan 4, 2025
1 parent cbc96bd commit 39fd51d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/core/src/descriptor/visualize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ fn visualize_custom_node(
) {
if node.run_config.inputs.is_empty() {
// source node
writeln!(flowchart, " {node_id}[\\**{node_id}**{description}/]").unwrap();
writeln!(flowchart, " {node_id}[\\\"**{node_id}**{description}\"/]").unwrap();
} else if node.run_config.outputs.is_empty() {
// sink node
writeln!(flowchart, " {node_id}[/**{node_id}**{description}\\]").unwrap();
writeln!(flowchart, " {node_id}[/\"**{node_id}**{description}\"\\]").unwrap();
} else {
// normal node
writeln!(flowchart, " {node_id}[**{node_id}**{description}]").unwrap();
writeln!(flowchart, " {node_id}[\"**{node_id}**{description}\"]").unwrap();
}
}

Expand Down

0 comments on commit 39fd51d

Please sign in to comment.