Skip to content

Commit

Permalink
Improve conversion method
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjanAswal committed Feb 9, 2021
1 parent 2172a4a commit 5965877
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
## [0.0.2] - 10 February 2021

* Fixed some errors.

## [0.0.3] - 10 February 2021

* Fixed some errors.
4 changes: 2 additions & 2 deletions lib/quill_markdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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":"')
Expand Down Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 5965877

Please sign in to comment.