Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary deletion of multi-line cells containing markdown text #5803

Closed
irm-codebase opened this issue Sep 1, 2024 · 1 comment
Closed
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@irm-codebase
Copy link

irm-codebase commented Sep 1, 2024

Description

When requesting multi-line cells containing markdown text, sometimes a cell will register as empty in the diagram despite having the correct syntax.

Interestingly, this only seems to happen for the live editor and Github documentation.
It won't happen in the (unofficial?) VSCode extension.

Might be a duplicate of #5785, #5787, #5698

This case is slightly different, though, so I decided to create an issue.

Steps to reproduce

Paste the code sample in the live editor and look at cell O1.
It's a squashed square!

---
title: hydropower
---
flowchart LR
    D1[("`**Databases**
        HydroBASINS
        JRC-hydropower
        IRENA energy generation
        ERA5
        Geth et al 2015
    `")] --> |Download| M
    C1[/"`**User input**
        {shapes}.geojson
    `"/] --> M((hydropower))
    M --> O1("`**Timeseries**
        capacity_factors_ror.csv
        capacity_factors_reservoir.csv
        `")
    M --> O2("`**Capacity**
        hydropower_supply.csv
        hydropower_storage.csv
        `")

Loading

Screenshots

Live editor:
image

GitHub docs:
image

The (unofficial, as far as I know...) Markdown preview VSCode plugin by Matt Bierner:
image

Code Sample

---
title: hydropower
---
flowchart LR
    D1[("`**Databases**
        HydroBASINS
        JRC-hydropower
        IRENA energy generation
        ERA5
        Geth et al 2015
    `")] --> |Download| M
    C1[/"`**User input**
        {shapes}.geojson
    `"/] --> M((hydropower))
    M --> O1("`**Timeseries**
        capacity_factors_ror.csv
        capacity_factors_reservoir.csv
        `")
    M --> O2("`**Capacity**
        hydropower_supply.csv
        hydropower_storage.csv
        `")

Setup

  • Mermaid version: v11.0.2 (as of creating this issue). I am not sure what Github is using.
  • Browser and Version: Firefox 129.0.2 (64-bit) - Flatpak version

Suggested Solutions

Honestly, no idea. Might be a simple fix, since the diagram does not crash.
The context of the cell is probably erased at some point.

Additional Context

Have a nice day!

@irm-codebase irm-codebase added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Sep 1, 2024
@irm-codebase irm-codebase changed the title Arbitrary deletion of markdown cells containing markdown text Arbitrary deletion of multi-line cells containing markdown text Sep 1, 2024
@irm-codebase
Copy link
Author

irm-codebase commented Sep 21, 2024

latest version fixes this, so I'll be closing this issue!

Not sure of what fixed it, but it's gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant