friebetill/delta_markdown
Dart에서의 Delta Markdown 변환기
- Stars
- 22
- Forks
- 37
- 최근 푸시(UTC)
- 2024. 6. 26.
- 프로젝트 상태
- 활성
언어Dart
사용 중인 의존성
의존성 목록 8 개
- args
^2.0.0 - charcode
^1.2.0 - collection
^1.15.0 - flutter_quill
^7.0.0 - build_runner개발 의존성
^2.0.0 - flutter_test개발 의존성
{"sdk":"flutter"} - pedantic개발 의존성
^1.11.0 - test개발 의존성
^1.16.5
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
README 펼치기 / 접기
A portable Markdown library written in Dart. It can convert between Markdown and Delta.
The converter is not ready for production
Usage
import 'package:delta_markdown/delta_markdown.dart';
void main() {
const markdown = 'Hello **Markdown**';
print(markdownToDelta(markdown));
const delta = r'[{"insert":"Hello "},{"insert":"Markdown","attributes":{"bold":true}},{"insert":"\n"}]';
print(deltaToMarkdown(delta));
}
Supports
Currently, these elements are supported:
- Bold
- Italic
- Link
- Blockquote
- Header
- List
- Code Block
- Image
- Horizontal Rule
Does not support the following elements, because Markdown does not support them:
- Background Color
- Color
- Font
- Size
- Strikethrough
- Superscript/Subscript
- Underline
- Text Alignment
- Text Direction
- Formula
- Video
Does not support the following elements, because flutter_quill does not support them:
- Inline Code
Known limits
Support for these elements must be implemented:
- Indent
There are only a few tests so far, so the functionality is not yet guaranteed in complex cases.