Aus öffentlichen Paketdaten erstellte Orientierung.
Ein plattformübergreifendes Markdown-Rendern-Paket für Flutter, das die Erstellung von Inhaltsverzeichnissen, Syntax-Highlighting für Codeblöcke und nahtlose Integration auf Android, iOS, Web, macOS, Windows und Linux unterstützt. Mit Fokus auf Einfachheit und Leistung entwickelt, ermöglicht es Entwicklern, reichhaltigen Markdown-Inhalt mit minimaler Konfiguration anzuzeigen. Das Paket wird aktiv gepflegt und ist für Anwendungen konzipiert, die dynamische Textdarstellung aus Markdown-Quellen erfordern.
Cross-platform support for Select All and Copy function.
🌐Html tag
As the current package only implements the conversion of Markdown tags, it does not support the conversion of HTML tags by default. However, this functionality can be supported through extension. You can refer to the usage in html_support.dart for more details.
The example includes support for Mermaid diagrams, which can render flowcharts, sequence diagrams, state diagrams, and more. Refer to the implementation in mermaid.dart
Features:
Multiple diagram types (flowchart, sequence diagram, state diagram, ER diagram, etc.)
Theme support (auto light/dark mode)
Interactive display modes (code only, diagram only, or both)
Fullscreen viewer with pan & zoom support
Independent horizontal scrolling for wide diagrams
Smart caching and debouncing for optimal performance
By passing a SpanNodeGeneratorWithTag to MarkdownGeneratorConfig, you can add new tags and the corresponding SpanNodes for those tags. You can also use existing tags to override the corresponding SpanNodes.
You can also customize the parsing rules for Markdown strings using InlineSyntax and BlockSyntax, and generate new tags.
You can refer to this issue to learn how to implement a custom tag.
If you have any good ideas or suggestions, or have any issues using this package, please feel free to open a pull request or issue.
🧾Appendix
Here are the other libraries used in markdown_widget