Skip to content

Instantly share code, notes, and snippets.

@jayrgee
Last active November 6, 2023 13:23
Show Gist options
  • Save jayrgee/3289f4f1ec5c16b8a569e7721963c26a to your computer and use it in GitHub Desktop.
Save jayrgee/3289f4f1ec5c16b8a569e7721963c26a to your computer and use it in GitHub Desktop.

https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/

https://mermaid-js.github.io/mermaid/#/n00b-syntaxReference?id=syntax-structure

sequenceDiagram
    participant dotcom
    participant iframe
    participant viewscreen
    dotcom->>iframe: loads html w/ iframe url
    iframe->>viewscreen: request template
    viewscreen->>iframe: html & javascript
    iframe->>dotcom: iframe ready
    dotcom->>iframe: set mermaid data on iframe
    iframe->>iframe: render mermaid
Loading
erDiagram
          CUSTOMER }|..|{ DELIVERY-ADDRESS : has
          CUSTOMER ||--o{ ORDER : places
          CUSTOMER ||--o{ INVOICE : "liable for"
          DELIVERY-ADDRESS ||--o{ ORDER : receives
          INVOICE ||--|{ ORDER : covers
          ORDER ||--|{ ORDER-ITEM : includes
          PRODUCT-CATEGORY ||--|{ PRODUCT : contains
          PRODUCT ||--o{ ORDER-ITEM : "ordered in"
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment