mermaid
mermaid copied to clipboard
classDiagram: return value "std::unique_ptr" does not display
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:
Code Sample
classDiagram
class ToyFactory {
<<factory>>
+makeToy() std::unique_ptr~Toy~
}
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.
Probably this is an instance of https://github.com/mermaid-js/mermaid/issues/1635.
Closing in favor of #1635