nus-cs2103-AY2425S1 / forum

12 stars 0 forks source link

UML diagrams on PlantUML rendering differently on Markbind as compared to on the preview #552

Open zaidansani opened 4 hours ago

zaidansani commented 4 hours ago

In the inbuilt view in IntelliJ, my PlantUML diagram looks like this:

image

However, when published to Markbind, the lines seem to have an issue (look at top right of the diagram, between UniqueAppointmentList and AppointmentBook.

image

Anyone with any idea why this might be happening?

damithc commented 2 hours ago

@zaidansani Did your team update this diagram or is this the original diagram? The differences can be due to different versions of PlantUML used by Intellij and MarkBind (sometimes it even varies based on the OS), but both versions should appear correctly with only cosmetic differences between them. I haven't seen this kind of discrepancies before.

damithc commented 2 hours ago

@zaidansani Did your team update this diagram or is this the original diagram?

Of course you did. I didn't check the diagram carefully before writing that 🤦

Perhaps try installing MarkBind locally and preview the diagram through that? If it is messed up, you can try tweaking the PlantUML code (e.g., reorder elements) to see if you can arrive at a version that renders correctly.