Commit graph appflowy-editor/test/plugins
Author SHA1 Message Date
Lucas
41335c54ae
chore: merge flutter 3_27_4 into main branch (#1228)
* chore: merge flutter/3_27_4 to main branch

* chore: code format

* fix: unit tests
2026-07-27 15:37:27 +08:00
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
f882d958d9
feat: integrate awesome_lints and upgrade to Flutter 3.38 (#1173)
* 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
2025-12-23 15:12:57 +08:00
Morn
7cc5d25788
fix: support export markdown with inline math equation (#1164) 2025-11-12 22:37:46 +08:00
Morn
c643df7c9e
feat: support formula in DeltaMarkdownDecoder (#1155) 2025-11-11 09:41:26 +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
Morn
c6909a7a04
fix: all the text pasted from google doc will be applied inline link format (#993) 2024-12-17 14:59:11 +08:00
Morn
25ee0e5227
fix: copy paste a paragraph that includes hyperlinks from gDocs 2024-12-11 09:23:17 +08:00
Lucas
8babced290
chore: refactor html test (#987) 2024-12-10 14:11:21 +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
35f0f66370
fix: html decoder ignores h4-h6 tags (#932) 2024-10-16 10:22:40 +08:00
Lucas.Xu
8e17d1447e
feat: optimize table update (#869)
* feat: optimize table update

* fix: combine the table transactions
2024-08-16 10:52:48 +08:00
Lucas.Xu
8b9ccf83fd
fix: render issue of nested list (#838)
* fix: render issue of nested list

* fix: table board doesn't show in readonly mode

* fix: ci tests
2024-07-04 16:58:57 +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
Steve
6ae91598f0
fix: markdown to document with image url having properties after extension (#795) 2024-06-04 16:06:47 +08:00
Lucas.Xu
1d5cdb7581 fix: numbered list doesn't increase when exporting html (#785) 2024-04-26 21:04:51 +08:00
Lucas.Xu
28655b4873
chore: upgrade flutter dependencies (#778)
* chore: upgrade dependecies to major version

* fix: remove paste as html feature
2024-04-26 16:46:22 +08:00
Ming Li
ce391a8c0f
fix: xtra space from numbered list item (#724) 2024-03-07 10:19:38 +08:00
Lucas.Xu
5e5b908e78
fix: resolve data loss issue during block type conversion (#726)
* fix: resolve data loss issue during block type conversion

* fix: flutter test

* test: add more tests
2024-02-26 09:44:43 +08:00
Sean Riley Hawkins
96fc5b5ab0
fix: unable to export image block in markdown format (#713)
* fix: replace image_src with url attribute solves (null) bug on export

* test: change test attribute value

* Update lib/src/plugins/markdown/encoder/parser/image_node_parser.dart

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2024-02-18 11:54:43 +08:00
Mathias Mogensen
66762ef9a0
feat: debounce on word count service (#711)
* feat: debounce on word count service

* test: add pump for debounce in test
2024-02-12 00:27:10 +01:00
Mathias Mogensen
e09bde476b
feat: on demand word count without listening (#710) 2024-02-08 21:25:48 +01:00
Mathias Mogensen
63844fd121
feat: support selection counters (#706)
* feat: support selection counters

* feat: improve
2024-02-08 10:46:45 +01:00
Mathias Mogensen
9c27b8e309
feat: word counter service (#705)
* feat: word counter service

* chore: minor improvement

* test: add expect for stop()

* fix: code review
2024-02-07 16:30:27 +01:00
Old Autumn
3679647a95
fix: fix checkbox not work as expected in html module. (#700)
* add support for breakline

* add test for br tag parse

* fix test failure case.

* feat: add  html support

* fix: todo list(checkbox) not work as expected
2024-02-01 17:16:17 +08:00
Old Autumn
2c5d5c7ba4
fix: add support for breakline and divider (#690)
* add support for breakline

* add test for br tag parse

* fix test failure case.

* feat: add  html support
2024-01-30 09:41:25 +08:00
Pit Hüne
a856888269
feat: parse nested numbered list (#674) 2024-01-15 15:29:36 +08:00
Hamish
c8ba2487da
feat: add markdown divider encoder parser (#639) 2024-01-08 15:05:03 +08:00
Jessica He
f4834b5bce
fix: markdown does not support nested lists (#611)
* 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>
2023-12-07 22:53:29 +08:00
Lucas.Xu
c7d99913aa
feat: support Flutter stable channel (#581)
* feat: adjust toggle list block

* chore: upgrade Flutter to master channel

* chore: upgrade pbxproj

* fix: toolbar copy button not closing on mobile editor

* fix: formatting issues and add missing commas

* chore: add stable branch to GitHub Actions workflow

* chore: add missing trailing commas

* chore: adjust indentation padding in block component
configuration and unit tests
2023-11-08 13:46:33 +08:00
Ali Hassan
522f17a00d
feat: table html encoder and decoder added (#449)
* feat: table html encoder and decoder added

* feat: html table encoder test added

* feat: fix the test ran issues

* fix: removed unused code
2023-10-22 13:59:26 +00: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
b4c74fd3f7 fix: the text within the <mark> tag didn't parse correctly when pasting HTML. 2023-09-25 15:06:53 +08:00
Sun Jiao
1944ab7a29
chore: update l10n (#463) 2023-09-15 10:13:49 +02:00
Lucas.Xu
edcddd97b6 fix: the selection area of divider is overflow 2023-09-13 17:21:04 +08:00
Lucas.Xu
b602141d32 fix: missing a required trailing comma 2023-09-13 15:26:29 +08:00
Mohammad Zolfaghari
dd52ce6718
feat: table plugin (#62)
* feat: table plugin requisites

* feat: moved table plugin to appflowy-editor

* fix: flutter analyze

* fix: dont use nested maps in node attributes

rust backend (flowy-document) doesn't support it.

* feat: add table to appflowy editor default selection menu

* feat table markdown encoder

* refactor: apply @Xazin review suggestions

* refactor: merge main and fix color picker conflicts

* feat: table markdown decoder

* fix: use specific backgroun generator for table

* feat: table plugin

* style: adapt new structure

* fix: table columns border height

* fix: adapt new style key commands

* fix: remove table context menu

* test: adapt to main branch changes

* fix: backspace handling regarding table

* fix: flutter analyze

* fix: enter when table cell is bullet list

* fix: selection bug on large table

* feat: row/col action menu

* fix: row action handler positioning

* refactor: merge row and col handler widget

* refactor: add size and color to handler icon

* style(merge): merge main

* feat: added padding and action wrapper

* feat: enable customizing icons and etc

* feat: table menu builder

* fix: table getBlockRect

* refactor: table action button design

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-08-29 15:24:25 +08:00
Ali Hassan
72d6c52f25
fix: html encoder not adding multiple text decorations (#424)
* fix: html encoder not adding multiple text decorations

* fix: html encoder with multiple attributes more test added
2023-08-29 15:02:01 +08:00
Mukund Tandon
687af49f63
feat: added support for custom parser for markdown to document (#403) 2023-08-25 15:58:22 +08:00
Lucas.Xu
016e141f51 fix: import single line delta failed 2023-08-17 13:09:34 +08:00
Lucas.Xu
cf14e0de08 feat: paste from html 2023-08-17 13:08:19 +08:00
q200892907
fbc1ecdcf0
fix: desktop color picker issue 2023-08-06 11:44:33 +08:00
Mukund Tandon
b26a2ea99f
fix: fixed the issue of code block not being exported in markdown (#347) 2023-08-01 09:56:16 +08:00
Mukund Tandon
d77ff1b2ac
fix: fixed numbered list being treated as a paragraph (#335) 2023-07-21 15:40:52 +08:00
Ali Hassan
3ee7e31416
feat: html encode parser added (#314) 2023-07-20 12:06:00 +08:00
Mukund Tandon
8a76e36b14
feat: support importing images and files from markdown file (#316) 2023-07-19 18:22:11 +08:00
Mohammad Zolfaghari
f8da435ad5
feat: support RTL and auto direction (#191) 2023-07-12 10:51:38 +08:00
Lucas.Xu
2b2bce4f3c
fix: analysis issues (#283) 2023-07-04 11:22:35 +08:00
Lucas.Xu
070ceb3e27
feat: migrate the delta encoder (#277) 2023-07-03 19:19:32 +08:00
Lucas.Xu
435f1a6f9a
feat: support customizing image menu (#265) 2023-06-30 13:40:18 +08:00