As I mentioned in #223 I have an issue with this extension. When using the elk renderer when a subgraph is empty, I get the following error : Cannot read properties of null (reading 're')
Here is my minimum reproducible example:
## Works
:::mermaid
%%{init: {"flowchart": {"defaultRenderer": "dagre"}} }%%
flowchart TD
subgraph A
end
:::
## Does not work
:::mermaid
%%{init: {"flowchart": {"defaultRenderer": "elk"}} }%%
flowchart TD
subgraph B
end
:::
Here's a screenshot :
Please note that I am aware that this may be an issue with mermaid itself.
Running the code in 1.21.0 or 1.20.0 yields instead Cannot read properties of null (reading 'he'), and I think I had it work once on a graph I can't find in 1.21.0 where it didn't in 1.22.0, but I since deleted it as it was too complex for a minimum viable exemple (😓)
Hi !
As I mentioned in #223 I have an issue with this extension. When using the
elk
renderer when a subgraph is empty, I get the following error :Cannot read properties of null (reading 're')
Here is my minimum reproducible example:
Here's a screenshot :![image](https://github.com/mjbvz/vscode-markdown-mermaid/assets/154252112/6ef28855-fe73-4274-acd3-140ff9cdfbb2)
Please note that I am aware that this may be an issue with mermaid itself. Running the code in 1.21.0 or 1.20.0 yields instead
Cannot read properties of null (reading 'he')
, and I think I had it work once on a graph I can't find in 1.21.0 where it didn't in 1.22.0, but I since deleted it as it was too complex for a minimum viable exemple (😓)