Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Mermaid does not support return type in a classDiagram #3542

Closed
LeoCHANGcn opened this issue Apr 6, 2020 · 2 comments
Closed

Mermaid does not support return type in a classDiagram #3542

LeoCHANGcn opened this issue Apr 6, 2020 · 2 comments
Labels
bug 🐛 Issue concerns a bug. level 1 ❕ A bug that caused minor damage: App is still usable, but minor features might not work.

Comments

@LeoCHANGcn
Copy link

Current behavior

0.15.2
win10 1909

classDiagram
class BankAccount{
    +String owner
    +BigDecimal balance

    +deposit(amount) bool
    +withdrawl(amount) int
}

Get a result:
image

But it should be:

image

@Flexo013 Flexo013 added question ❓ Issue concerns a question. bug 🐛 Issue concerns a bug. level 1 ❕ A bug that caused minor damage: App is still usable, but minor features might not work. and removed question ❓ Issue concerns a question. labels Apr 7, 2020
@Flexo013
Copy link
Contributor

Flexo013 commented Apr 7, 2020

This is indeed rendered wrong. See https://mermaid-js.github.io/mermaid/#/classDiagram?id=return-type

My first guess is that return types are supported yet by our current version of mermaid, but I couldn't easily find when this feature was introduced.

@Flexo013 Flexo013 changed the title mermaid: wrong results when add a return type in a classDiagram Mermaid: does not support return type in a classDiagram Apr 7, 2020
@Flexo013 Flexo013 changed the title Mermaid: does not support return type in a classDiagram Mermaid does not support return type in a classDiagram Apr 7, 2020
@daiyam daiyam mentioned this issue Jun 14, 2020
@Flexo013
Copy link
Contributor

This is solved as of Boostnote Legacy version 0.16.0.

Thanks for your contribution @daiyam ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issue concerns a bug. level 1 ❕ A bug that caused minor damage: App is still usable, but minor features might not work.
Projects
None yet
Development

No branches or pull requests

2 participants