Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

htmlLabels suport And CSS single Control #1395

Open
WingDust opened this issue May 8, 2020 · 2 comments
Open

htmlLabels suport And CSS single Control #1395

WingDust opened this issue May 8, 2020 · 2 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@WingDust
Copy link

WingDust commented May 8, 2020

Is your feature request related to a problem? Please describe.

  • I use mermaid within flowchart to write my project structure model.

  • I have a thing that i need to a few label to descirbed ,And for clearly identify each label to make every label have own color font it will be great .

  • so I use htmllabel in subgraph such as span ...

  • Through refer to the many data I saw the <br> it's work but span to don't work in screenshot.

  • in rendering <span style= "color:red">AB</span> it has syntax error

Describe the solution you'd like

  • have two problem
    • in flowchart subgraph's title can use some other HtmlLabel like <span>
    • I can just for this label in title to write css to control

Describe alternatives you've considered

Additional context
Add any other context or screenshots about the feature request here.
image

@WingDust WingDust added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels May 8, 2020
@vantoan8x
Copy link

add option config below "theme",

securityLevel : "snoop"

you can use the html formating in this case.

@slokhorst
Copy link

The same issue is evident in the official docs for Flowchart (section "Css classes"):

image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants