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

Mermaid formatting may need escaped; Enum outputs produce floating markup blocks #36

Open
Dessix opened this issue Jul 8, 2022 · 0 comments

Comments

@Dessix
Copy link

Dessix commented Jul 8, 2022

The choice enum results appear to produce weird markup and visual results:
image
With the following signature:

pub enum ConnectionResult {
  Connected,
  Disconnected,
}

And the following markup...

<div class="mermaid">
stateDiagram-v2
[*] --> Initial : new
state ConnectionResult <<choice>>
Initial --> ConnectionResult : connect
ConnectionResult --> Connected
ConnectionResult --> Disconnected
Disconnected --> [*] : close
Connected --> Disconnected : disconnect
</div>

The <<choice>> seems to be producing issues; Replacing it with &lt;&lt;choice&gt;&gt; eliminates the issue, but changing the region to <pre> does not. I suspect the output for mermaid blocks needs to be escaped.

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

1 participant