peele / plantuml-preview

Atom package.
MIT License
23 stars 13 forks source link

Preview not displayed when both id and filename are declared with startuml #41

Closed darshakthakore closed 4 years ago

darshakthakore commented 5 years ago

The startuml command allows an id to be declared along with the filename, however when both are provided, the preview does not display the generated diagram correctly as it does not parse the filename correctly. For example @startuml(id=abc) myuml.svg should parse the preview filename as myuml.svg instead of "(id=abc) myuml.svg" as the filename.

darshakthakore commented 5 years ago

looks like the fix needs to be in the getFileNames function where it parses the filename from the startuml command

Need an additional regex group to parse out the id element if present.