marcozaccari / markdown-diagrams-browser-extension

A browser extension for Chrome, Edge, Opera and Firefox that renders markdown diagrams and charts code blocks into preview images.
MIT License
56 stars 27 forks source link

AddRelTag is not working. #3

Closed kysee closed 3 years ago

kysee commented 3 years ago

I set the line color and text color by using AddRelTag.
As you see in the following diagram, the color is not changed and the tags are not shown in the legend table.

@startuml
!include C4_Context.puml

AddRelTag(redtext, $textColor="red")
AddRelTag(redline, $lineColor="red")
AddRelTag(redtext&redline, $textColor="red", $lineColor="red")

Person(U, "User")
System(A, "A System", "Description for A System.")
System_Ext(B, "B System", "This is external systems.")
Rel(U, A, "Do somethings (The color of line and text should be RED but ...)", $tags="redtext&redline+redtext+redline")
Rel(A, B, "Request somethings")

SHOW_LEGEND()
@enduml
marcozaccari commented 3 years ago

Hi, I've tried directly in Kroki live editor: https://kroki.io/#try and it looks like their server has a slightly older version of C4. (Kroki is the render provider used by default by Markdown Diagrams, look at the extension settings)

So the correct place to open this issue is https://github.com/yuzutech/kroki/issues

I just hope I've been of some help.