Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@startuml or @startgantt stops toc generator from functioning. #60

Closed
GeoffMurray opened this issue Feb 9, 2023 · 3 comments
Closed

Comments

@GeoffMurray
Copy link

I am using plantuml code blocks, like so...

```plantuml
@startuml
start
:Init Phase;
:Transfer Phase;
note right
long running activity,
process requires signal to proceed
end note
:Termination Phase;
stop
@enduml
```

Or, this:

```plantuml
@startgantt
skinparam monochrome true
[Task1] on {Alice} lasts 8 days
then [Task2] on {Bob} lasts 4 days at 50%
then [Task3] on {Carol} lasts 2 days at 25%
@endgantt
```

Either of these stop the TOC generator from functioning. In the first example, I can workaround by removing the @startuml and @enduml markers. However, in the second example, I cannot, because that's a critical part of the syntax.

It's as though the TOC generator is not really treating the code block as fully code. It seems something about the "@" syntax is throwing off the processing.

I'm not sure if there is any sort of error log I might be able to find to help narrow down the problem.

@vamsi-juvvi
Copy link

vamsi-juvvi commented Aug 18, 2023

I have been doing PlantUml heavily and have noticed this as well. For a while I switched to using VSCode's outline feature as a replacement but that was not satisfying. Decided to try my hand at actually debugging this issue: code is straightforward and well structured so was fairly quick to locate the issue.

Will send a PR for the simplest, clean fix I can come up with in a bit.

@vamsi-juvvi
Copy link

vamsi-juvvi commented Aug 18, 2023

@huntertran Created PR: #62. Pls let me know if you want me to change anything.

@huntertran
Copy link
Owner

Thank @vamsi-juvvi for the pull request
The fix was published in 3.0.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants