delta_markdown
Ein Delta-Markdown-Konverter in Dart
- Sterne
- 22
- Forks
- 37
- Letzter Push (UTC)
- 26.06.2024
- Projektstatus
- Aktiv
Original-README
Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
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.
SprachenDart
Verwendete Abhängigkeiten
Abhängigkeiten 8 Einträge
- args
^2.0.0 - charcode
^1.2.0 - collection
^1.15.0 - flutter_quill
^7.0.0 - build_runnerEntwicklung
^2.0.0 - flutter_testEntwicklung
{"sdk":"flutter"} - pedanticEntwicklung
^1.11.0 - testEntwicklung
^1.16.5
Wie wähle ich ein passendes Repository?
Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.
- Nach Name, Autor oder Beschreibung suchen und nach Thema eingrenzen.
- Sterne, Forks und letzte Pushes vergleichen. Sterne zeigen Interesse, garantieren aber keine Qualität.
- Vor der Nutzung README, Lizenz und Issues auf GitHub prüfen.
Quellen und Pflege
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
- friebetill/delta_markdown · GitHub ↗
- GitHub Docs — Saving repositories with stars ↗
- Verzeichnis gepflegt von Ducafecat ↗