iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.67k stars 277 forks source link

Mermaid Class Digram Multiplicity not shown #573

Open louishuyng opened 1 year ago

louishuyng commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. having multiplicity like "1..*" before the relationship symbol "--"

    classDiagram
    Title "1..*" -- "1..*" Genre: is associated with
    
    Title "1" *-- "0..*" Season :has
    Title "1" *-- "0..*" Review :has
    Title "0..*" o--  "1..*" Actor :features
    
    Viewer "0..*" --> "0..*" Title :watches
    
    TV Show --|> Title :implements
    Short --|> Title :implements
    Film --|> Title :implements
    
    Season "1" *-- "0..*" Review :has
    Season "1" *-- "0..*" Episode :contains
    Episode "1" *-- "0..*" Review :has
  2. Check that multiplicity is not shown when preview image

Expected behavior It should show 1.. or 0.. same as the mermaid live preview or in GitHub markdown preview (both show the same way)

image

Screenshots

Desktop (please complete the following information):