Commit graph appflowy-editor/test/plugins/markdown/document_markdown_test.dart
Author SHA1 Message Date
Lucas
301d0fa579
fix: prevent documentToMarkdown from mutating source document (#1184)
* 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.
2026-02-23 16:01:58 +08:00
Lucas
448174bb11
fix: unable to parse image if the image is inside the paragraph (#1012)
* 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>
2025-01-07 18:08:14 +08:00
Lucas
8ae43d4b66
fix: markdown parser doesn't recognize softline breaks (#933)
* fix: markdown parser doesn't recognize softline breaks

* fix: tests
2024-10-16 11:02:15 +08:00
Lucas.Xu
5bf6c7acd0
feat: support custom markdown parsers (#835)
* 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
2024-07-04 09:53:25 +08:00
Hamish
c8ba2487da
feat: add markdown divider encoder parser (#639) 2024-01-08 15:05:03 +08:00
Lucas.Xu
9ae85ea162
feat: support parsing the nested list when exporting the document to markdown format (#540)
* feat: support exporting nested list

* feat: support parsing the nested list

* fix: tests
2023-10-14 23:47:57 +08:00
Lucas.Xu
c573b9a80f
feat: rename delta and document (#153)
* chore: rename delta

* fix: rename attributes to data

* chore: rename document to page

* fix: flutter analyze
2023-06-01 14:43:12 +08:00
Lucas.Xu
2229d85635 test: migrate test/plugins/markdown 2023-05-01 12:36:04 +08:00
Mathias Mogensen
226d39cc78
test: improve test coverage (#23) 2023-03-24 20:59:03 +08:00