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

all '-->' replaced with */ in jsx node #256

Closed
jpambrun opened this issue Sep 12, 2018 · 2 comments
Closed

all '-->' replaced with */ in jsx node #256

jpambrun opened this issue Sep 12, 2018 · 2 comments
Labels
🐛 type/bug This is a problem

Comments

@jpambrun
Copy link

I am very new to this. I am trying to use mermaid to draw graphs in mdx.
The minimum working example for mermaid is:

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;

Creating a jsx component following this, it should translate to:

<Mermaid id='someid' content={`graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
`}/>

However, this wont work because all --> are somewhat blindly translated to */ here.

Is there any workaround?

@silvenon
Copy link
Contributor

silvenon commented Sep 12, 2018

Sorry about that, it's my naive implementation of comments. There's a PR pending which fixes that.

@silvenon silvenon added the 🐛 type/bug This is a problem label Sep 17, 2018
@silvenon
Copy link
Contributor

silvenon commented Sep 20, 2018

Resolved with #260 and released in v0.15.3-0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 type/bug This is a problem
Development

No branches or pull requests

2 participants