Skip to content
This repository was archived by the owner on Jan 11, 2026. It is now read-only.
This repository was archived by the owner on Jan 11, 2026. It is now read-only.

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

@Dessix

Description

@Dessix

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions