ouhammmourachid / mermaid-py

Python Interface for the Popular mermaid-js Library, Simplified for Diagram Creation
https://mermaidpy.vercel.app
MIT License
59 stars 6 forks source link

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

Open Mrithul-E opened 1 week ago

Mrithul-E commented 1 week ago

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