skanaar / nomnoml

The sassy UML diagram renderer
https://www.nomnoml.com
MIT License
2.7k stars 209 forks source link

Escape # character #72

Closed eduardocopat closed 5 years ago

eduardocopat commented 6 years ago

I am trying to represent a protected method and it is not possible to use the # character, for it is a comment.

Example:

[AbstractClass|
#abstractMethod(): void;
]

We could have something like:

[AbstractClass|
\#abstractMethod(): void;
]

Similar to #5

skanaar commented 5 years ago

Directives are now required to begin at the start of the line, so a space character before the # will escape it nicely when indenting the contents of a class.

kjczarne commented 4 years ago

Sorry for poking an old issue, but for some reason inserting a space in front of a # character doesn't work anymore. Maybe sth changed in the way nomnoml interprets the newlines? I have a protected variable that I would like to describe with a # character.

skanaar commented 4 years ago

What browser are you using? It works for me when I try

[Person|
 name: string
 #secrets: number
]