{ "info": { "author": "Olivier Ruelle", "author_email": "olivier.ruelle@yahoo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Text Processing :: Filters", "Topic :: Text Processing :: Markup :: HTML" ], "description": "# md_mermaid\nmermaid extension for Python-Markdown to add support for mermaid graph inside markdown file\n\n## Installation\n\n* pip (only python version >=3.x) :\n\n~~~shell\npip install markdown\npip install md-mermaid\n~~~\n\n##\u00a0Usage\n\nIn your python script :\n\n~~~python\nimport markdown\n\ntext = \"\"\"\n# Title\n\nSome text.\n\n\u200b~~~mermaid\ngraph TB\nA --> B\nB --> C\n\u200b~~~\n\nSome other text.\n\n\u200b~~~mermaid\ngraph TB\nD --> E\nE --> F\n\u200b~~~\n\"\"\"\n\nhtml = markdown.markdown(text, extensions=['md_mermaid'])\n\nprint(html)\n~~~\n\nOutput will result in :\n\n~~~html\n
Some text.
\nSome other text.
\n