Skip to content

Commit

Permalink
test: fix invalid comment syntax in git graphs
Browse files Browse the repository at this point in the history
Mermaid v11.0.2 no longer allows the invalid comments in git graphs with
only one `%` character. You now need `%%`.
  • Loading branch information
aloisklink authored and MindaugasLaganeckas committed Sep 9, 2024
1 parent 8c4df01 commit 0529bbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test-positive/git-graph.mmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
gitGraph
% Need to manually set id, otherwise they are auto-generated
%% Need to manually set id, otherwise they are auto-generated
commit id: "abcdef"
commit id: "123456"
branch feature
Expand Down
2 changes: 1 addition & 1 deletion test-positive/mermaid.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A-->B("hello 🐛")
2. git-graph.mmd
```mermaid
gitGraph
% Need to manually set id, otherwise they are auto-generated
%% Need to manually set id, otherwise they are auto-generated
commit id: "abcdef"
commit id: "123456"
branch feature
Expand Down

0 comments on commit 0529bbe

Please sign in to comment.