Commit graph appflowy-editor/test/plugins/markdown
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
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
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
Ming Li
ce391a8c0f
fix: xtra space from numbered list item (#724) 2024-03-07 10:19:38 +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
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
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
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
Mukund Tandon
687af49f63
feat: added support for custom parser for markdown to document (#403) 2023-08-25 15:58:22 +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
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
Vedant Pandey
a1ae5eae69
fix: add underline syntax parser (#256) 2023-06-27 22:21:03 +08:00
Mukund Tandon
b298ceb643
feat: added code block support for conversion from markdown to document (#197)
* 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 &quot

* 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>
2023-06-19 10:08:31 +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
8fa6a64604 Merge remote-tracking branch 'origin/main' into mobile 2023-05-15 20:28:36 +08:00
Mathias Mogensen
c4102f0341
fix: nested text node parser (#115)
Closes: #112
2023-05-08 10:08:54 +08:00
Lucas.Xu
2229d85635 test: migrate test/plugins/markdown 2023-05-01 12:36:04 +08:00
Lucas.Xu
82c580e9a5 test: migrate test/plugins/markdown/encoder 2023-05-01 12:28:44 +08:00
Mathias Mogensen
cf5e83d370
chore: add linters conforming to style guide (#59)
Relates: #56 #57
2023-04-12 20:37:50 +08:00
Mathias Mogensen
226d39cc78
test: improve test coverage (#23) 2023-03-24 20:59:03 +08:00
Lucas.Xu
682e3dce53
chore: pre-release 0.1.1 (#3) 2023-03-09 15:38:54 +08:00
Lucas.Xu
5db0480075 chore: update LICENSE 2023-02-05 11:43:51 +08:00