FiraCode icon indicating copy to clipboard operation
FiraCode copied to clipboard

Ligature request: Mermaid's Entity Relationship Diagram

Open H2WO4 opened this issue 3 years ago • 3 comments

Would it be possible to add ligatures for Mermaid's ERD relationship notation? As it is not a common use case, adding them as variants might be preferable.

Syntax specification:

  • Either
    • |o
    • ||
    • }o
    • }|
  • Always --
  • Either
    • o|
    • ||
    • o{
    • |{

Examples: }o--||, |o--|{

Possible problems may arise, as ||, |- and -| are already ligatures. Hard-coding every possibility could possibly work.

Design:

  • Either skewering them together on a line, and putting the characters closer image
  • Or resembling the actual mermaid output (see the arrows in the image below) image

H2WO4 avatar Feb 24 '22 20:02 H2WO4

I guess it could be done, but sounds obscure? Where is it used?

tonsky avatar Feb 28 '22 16:02 tonsky

It is used solely (to my knowledge) by Mermaid (the Markdown extension). Within that, it is used solely for Entity Relationship Diagrams (used, for example, to represent relational databases). I definitely agree that it's obscure, and would definitely understand if this is given low priority (and honestly, it should). It is just that Fira Code currently does not work well at all with this notation. Example: image

H2WO4 avatar Feb 28 '22 20:02 H2WO4

Additionally, here is the official syntax specification: https://mermaid-js.github.io/mermaid/#/entityRelationshipDiagram?id=relationship-syntax

H2WO4 avatar Feb 28 '22 20:02 H2WO4