AVATEAM-IT-SYSTEMHAUS / mkdocs-kroki-plugin

MkDocs plugin for Kroki-Diagrams
MIT License
50 stars 28 forks source link

Bug: 400 Syntax error using @from-file plantuml diagrams #68

Closed sblausten closed 4 months ago

sblausten commented 5 months ago

Using the latest release version 0.8.0 when I try to render a platuml diagram using the @from-file directive I get the following:

Screenshot 2024-06-19 at 13 08 59 Screenshot 2024-06-19 at 13 09 42
kroki-plantuml
\```kroki-plantuml
@from-file:assets/diagram.plantuml
\```

and the file contents is just an example diagram:

@startuml
Bob -> Alice : hello
@enduml

Has anyone else seen this behaviour?

oniboni commented 4 months ago

I can reproduce the error. ~Seems the file data is not read in correctly.~

There is a typo: @from-file: -> @from_file: fixes it.

Can I close this issue or is there a good reason, to support @from-file:?

oniboni commented 4 months ago

I'm closing this one, bc it is not a but but a typo in the given example.

Feel free to open a new issue, if there are other problems.