From 5965877573b83b166e8533347522304707406ede Mon Sep 17 00:00:00 2001 From: ArjanAswal Date: Tue, 9 Feb 2021 22:17:05 +0530 Subject: [PATCH] Improve conversion method --- CHANGELOG.md | 4 ++++ lib/quill_markdown.dart | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 361fc2a..09b5ac4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,3 +5,7 @@ ## [0.0.2] - 10 February 2021 * Fixed some errors. + +## [0.0.3] - 10 February 2021 + +* Fixed some errors. \ No newline at end of file diff --git a/lib/quill_markdown.dart b/lib/quill_markdown.dart index d98e5fd..fa66f45 100644 --- a/lib/quill_markdown.dart +++ b/lib/quill_markdown.dart @@ -12,7 +12,7 @@ String quillToMarkdown(String content) { .replaceAll('"header":3', '"heading":3') .replaceAll('"bold":true', '"b":true') .replaceAll('"italic":true', '"i":true') - .replaceAll('"blockquote":true', '"block":"quote"') + .replaceAll('"blockquote":"true"', '"block":"quote"') .replaceAll('"blockquote":"quote"', '"block":"quote"') .replaceAll('"code-block":true', '"block":"code"') .replaceAll(',"attributes":{"link":"', ',"attributes":{"a":"') @@ -84,7 +84,7 @@ String markdownToQuill(String content) { .replaceAll('"heading":3', '"header":3') .replaceAll('"b":true', '"bold":true') .replaceAll('"i":true', '"italic":true') - .replaceAll('"block":"quote"', '"blockquote":true') + .replaceAll('"block":"quote"', '"blockquote":"true"') .replaceAll('"block":"ul"', '"list":"bullet"') .replaceAll('"block":"ol"', '"list":"ordered"') .replaceAll('"block":"code"', '"code-block":true') diff --git a/pubspec.yaml b/pubspec.yaml index b329392..afd13d3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: quill_markdown description: A quill to markdown converter and vice versa -version: 0.0.2 +version: 0.0.3 homepage: https://github.com/ArjanAswal/quill_markdown.git repository: https://github.com/ArjanAswal/quill_markdown.git