BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.07k stars 1.47k forks source link

Mermaid does not support return type in a classDiagram #3542

Closed LeoCHANGcn closed 4 years ago

LeoCHANGcn commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

This is solved as of Boostnote Legacy version 0.16.0.

Thanks for your contribution @daiyam ❤️