Skip to content

Mermaid ER diagrams cardinality symbols are hard to see #8153

Closed
@Jazzinghen

Description

@Jazzinghen

Context

I am trying to add a couple of Mermaid ER diagrams into my documentation, however the relational cardinality symbols are very hard or impossible to see and if the theme is forced they show on top of the ER diagram node, instead of being half hidden behind each node.

Bug description

ER diagrams are not rendered properly in MKDocs using Material theme, this can be seen from this project's documentation:

Image

While on the official Mermaid documentation the same diagram is rendered like this:

Image

In my case, this is how my diagram is rendered:

Image

While on the official online editor it's shown like this:

Image

If the theme is forced to be dark then the issue is a bit different:

Image

Related links

Reproduction

9.6.11-mermaid-er-broken-rendering.zip

Steps to reproduce

  1. Create a MKDocs Material documentation project
  2. Set it up to use Mermaid as per documentation
  3. [Optional] Set some theme options
  4. Create a page with a Mermaid ER diagram using relationship cardinalities

Browser

Firefox

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions