asjqkkkk / markdown_widget

📖Rendering markdown by flutter!Welcome for pr and issue.
MIT License
321 stars 93 forks source link

Support for "mermaid" #168

Open S4tyendra opened 6 months ago

S4tyendra commented 6 months ago

Problem: There's currently no support for Mermaid diagrams in the markdown widget.

Solution: I would like the markdown widget to have built-in support for Mermaid diagrams, allowing users to easily create and display diagrams within their markdown content.

Additional Context: Mermaid is a markdown-like language used for generating diagrams and flowcharts directly from text descriptions. It allows users to create various types of diagrams, including flowcharts, sequence diagrams, Gantt charts, and more, using a simple and intuitive syntax. Mermaid diagrams can be easily integrated into markdown documents, wikis, presentations, and other platforms that support Markdown. It's widely used by developers, technical writers, and others to create visual representations of processes, systems, and data flows.

links:

test it here: https://mermaid.live/edit syntax: https://emersonbottero.github.io/mermaid-docs/syntax/classDiagram.html gh links: https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/ https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams https://handbook.gitlab.com/handbook/tools-and-tips/mermaid/ pub.dev : https://pub.dev/packages/mermaid