skanaar / nomnoml

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

Classifier Style Problem with <frame> Visual #213

Closed dsidesfb closed 8 months ago

dsidesfb commented 8 months ago

Maybe related to #166 though this does not have any numbers involved in the classifier style...

The visual=frame is not working in a classifier style:

frameex: visual=frame

[Example Frame with Classifier Style|Note 1|Note 2] [Example Frame|Note 1|Note 2]

image

Enjoying using nomnoml every week. Thank you!

skanaar commented 8 months ago

The custom classifier styles must be prefixed with a ..

Try this: #.frameex: visual=frame title=left

It make me happy that you enjoy nomnoml ! 😄

dsidesfb commented 8 months ago

Woops! 😳 Thank you.

Would it be straight-forward or desirable to have the parser flag any directive that is not recognized as an error?

skanaar commented 8 months ago

The directives are not really handled by the "real" parser, but it is a good idea to display parsing errors for them as well.