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

not working when containing Malayalam (language) strings in mermaid script #217

Open
Mrithul-E opened this issue Nov 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Mrithul-E
Copy link

Mrithul-E commented Nov 15, 2024

I am getting <Response [404]> when running :

import mermaid as md
from mermaid.graph import Graph
from text_to_mermaidScript import get_mermaidjs_script


mermaid_script = """

graph TD
    A["കേരളം"] --> B["ഇന്ത്യയുടെ സംസ്ഥാനം"]
    A --> C["തെക്കുപടിഞ്ഞാറേ അറ്റത്തുള്ള സംസ്ഥാനം"]

"""
print(mermaid_script)
sequence = Graph('Sequence-diagram', mermaid_script)
render = md.Mermaid(sequence, width = 800)
print(render.img_response)
render.to_svg("flowchart.svg")

please help to fix this error or issue in this library 🥺🙏.

This mermaid-script is working in mermaid.live

@ouhammmourachid ouhammmourachid added the bug Something isn't working label Nov 15, 2024
@HASPIMA
Copy link
Contributor

HASPIMA commented Dec 4, 2024

Hey @Mrithul-E, could you try #100 and tell me if this works?

It's a hacky solution, but it may help you get there in the meantime

@HASPIMA
Copy link
Contributor

HASPIMA commented Dec 4, 2024

I just noticed that this is may not be solved by trying #100. I will test it next time. Sorry for the inconvenience 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants