bra1nDump / show-me-chatgpt-plugin

Create and edit diagrams in ChatGPT
https://showme.redstarplugin.com
675 stars 70 forks source link

ChatGPT4 always added green lines #36

Open Depech101 opened 1 year ago

Depech101 commented 1 year ago

graph TB

M["Main Branch"] -- "Start Project" --> C1["First Commit"]
  M -- "Realize Mistake" --> C2["Wrong Commit"]
  C2 -- "Roll Back" --> C1
  M -- "Create Dev Branch" --> D["Develop Branch"]
  D -- "Work on Project" --> C3["New Commits"]
  D -- "Merge to Main" --> M
  linkStyle 0 stroke:#ff0000,stroke-width:2px,stroke-dasharray: 5, 5;
  linkStyle 1 stroke:#ff0000,stroke-width:2px,stroke-dasharray: 5, 5;
  linkStyle 2 stroke:#ff0000,stroke-width:2px,stroke-dasharray: 5, 5;
  linkStyle 3 stroke:#ff0000,stroke-width:2px,stroke-dasharray: 5, 5;
  linkStyle 4 stroke:#ff0000,stroke-width:2px,stroke-dasharray: 5, 5;
  linkStyle 5 stroke:#ff0000,stroke-width:2px,stroke-dasharray: 5, 5;
  linkStyle 0 stroke:#2ecd71,stroke-width:2px;
  linkStyle 1 stroke:#2ecd71,stroke-width:2px;
  linkStyle 2 stroke:#2ecd71,stroke-width:2px;
  linkStyle 3 stroke:#2ecd71,stroke-width:2px;
  linkStyle 4 stroke:#2ecd71,stroke-width:2px;
  linkStyle 5 stroke:#2ecd71,stroke-width:2px;

I have been trying tell him not to double linkStyle many time but he always add: linkStyle 0 stroke:#2ecd71,stroke-width:2px;

bra1nDump commented 1 year ago

We currently manually append the line styling for each edge. This is expected.

We should test if the diagram already has some custom styling we should not append default style.