Flutter용 크로스 플랫폼 마크다운 렌더링 패키지로, 목차 생성, 코드 블록의 구문 강조, 안드로이드, iOS, 웹, 맥OS, 윈도우, 리눅스에서의 원활한 통합을 지원합니다. 단순성과 성능을 고려하여 설계되었으며, 최소한의 구성으로 풍부한 마크다운 콘텐츠를 표시할 수 있게 해줍니다. 이 패키지는 지속적으로 유지보수되며, 마크다운 소스로부터 동적 텍스트 렌더링이 필요한 앱에 사용하기 위해 설계되었습니다.
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