mermaid icon indicating copy to clipboard operation
mermaid copied to clipboard

classDiagram: return value "std::unique_ptr" does not display

Open sebastianbergt opened this issue 2 years ago • 1 comments

Describe the bug The return value of makeToy does not display correctly with std:: or likely any other namespace prefix.

To Reproduce Just try to render the example below. If std:: is omitted, it works again.

Expected behavior Display the makeToy line as +makeToy() std::unique_ptr<Toy>

Screenshots Wrong display: image

Code Sample

classDiagram
    class ToyFactory {
        <<factory>>
        +makeToy() std::unique_ptr~Toy~ 
    }

live editor

Desktop (please complete the following information): Tried on

  • OS: Ubuntu 20.04 x86_64
  • Browser Chrome
  • Version 103.0.5060.134

Smartphone (please complete the following information): Did not test it on a smartphone.

sebastianbergt avatar Aug 08 '22 11:08 sebastianbergt

Probably this is an instance of https://github.com/mermaid-js/mermaid/issues/1635.

matthew-limbinar avatar Aug 10 '22 14:08 matthew-limbinar

Closing in favor of #1635

jgreywolf avatar Mar 10 '23 17:03 jgreywolf