* fix: prevent documentToMarkdown from mutating source document
convertNodes() was calling pageNode(children: nodes) which triggered
Node's constructor to unlink() each child from its original parent,
orphaning nested list items in the source document.
Fix by deep-copying nodes before passing them to pageNode().
Fixes https://github.com/AppFlowy-IO/AppFlowy/issues/8486
* chore: add regression test for issue #8486
Verifies that documentToMarkdown() does not orphan children of nested
list items in the source document after conversion.
* chore: update Flutter SDK to version 3.38.5
Upgrade Flutter from 3.32.4 to 3.38.5 to meet awesome_lints
requirement for Dart SDK 3.10.0+. Update CI workflow to use
the new Flutter version and add custom_lint verification step.
* chore: integrate awesome_lints with custom lint rules
Add awesome_lints and custom_lint dependencies, configure
analysis_options.yaml to enable newline lint rules: newline_before_case,
newline_before_constructor, newline_before_method, and newline_before_return.
* style: apply newline formatting per awesome_lints rules
Add blank lines before case clauses, return statements, method
declarations, and constructors throughout the codebase to comply
with awesome_lints newline rules.
* fix: replace deprecated translate with leftTranslateByDouble
Update Matrix4.translate() calls to use the new leftTranslateByDouble()
API to resolve deprecation warnings in Flutter SDK 3.38.5.
* chore: improve code readability with blank line formatting
* fix: unable to parse image if the image is inside the paragraph
* test: unable to parse image if the image is inside the paragraph
* fix: using space bar to move the cursor not working on Android (#1013)
---------
Co-authored-by: Morn <agedchen@gmail.com>
* feat: support custom markdown parsers
* fix: markdown test
* feat: add markdown quote parser
* chore: use markdown parser
* chore: parse unordered list, to_do list and quote
* feat: add a markdown editor example
* feat: add bulleted list parser
* feat: support nested list and img
* feat: support code block
* feat: support table parser
* chore: refacotr code
* fix: flutter analyze
* chore: add more tests and remove unused files
* fix: test
* fix: markdown does not support nested lists
Signed-off-by: Jessica He <jessicahe4741@gmail.com>
* chore: code format
---------
Signed-off-by: Jessica He <jessicahe4741@gmail.com>
Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
* feat: added support for markdown codeblock to be converted to ducument
* test: added test for code block support for markdown to document conversion
* fix: disabled encode html which use to cause covert double quotes to "
* fix: the issue of all code being displayed in single line is fixed
* fix: fixed failing checks
* fix: fixed failing checks
* fix: fixed failing test
* Update lib/src/plugins/markdown/decoder/delta_markdown_decoder.dart
Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
* fix: made changes from the code review
* refactor: made changes in code to handle edge cases and made changes given in code review
* fix: fixed failing checks
---------
Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>