mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-27 19:11:09 +00:00

* fix: disable cut command in table cell * feat: only keep the table cell content when coping text from table * fix: focus on the first cell after inserting table * test: focus on the first cell after inserting table * feat: highlight the cell when editing * test: highlight the cell when editing * fix: creating a new row makes a cursor appear for a fraction of a second * fix: add 4px between scroll bar and add row button * chore: rename simple table components * fix: select all in table cell block * test: select all in table cell block * feat: disable two-fingers resize in table cell * feat: includ table when exporting markdown * test: include table when exporting markdown * feat: optimize add row button render logic * chore: optimize hover button render logic * fix: column button is not clickable * fix: theme assertion * feat: improve hovering logic * fix: selection issue in table * fix(flutter_desktop): popover conflicts on simple table * feat: support table markdown import * test: table cell isEditing test * test: select all in table test * fix: popover conflict in table action menu * test: insert row, column, row/column in table * test: delete row, column, row/column in table * test: enable header column and header row in table * test: duplicate/insert left/right/above/below in table * chore: duplicate table in optin menu * fix: integraion test --------- Co-authored-by: Richard Shiue <71320345+richardshiue@users.noreply.github.com>
26 lines
667 B
Dart
26 lines
667 B
Dart
import 'package:appflowy/plugins/document/presentation/editor_plugins/plugins.dart';
|
|
import 'package:appflowy_editor/appflowy_editor.dart';
|
|
|
|
Document customMarkdownToDocument(String markdown) {
|
|
return markdownToDocument(
|
|
markdown,
|
|
markdownParsers: [
|
|
const MarkdownCodeBlockParser(),
|
|
const MarkdownSimpleTableParser(),
|
|
],
|
|
);
|
|
}
|
|
|
|
String customDocumentToMarkdown(Document document) {
|
|
return documentToMarkdown(
|
|
document,
|
|
customParsers: [
|
|
const MathEquationNodeParser(),
|
|
const CalloutNodeParser(),
|
|
const ToggleListNodeParser(),
|
|
const CustomImageNodeParser(),
|
|
const SimpleTableNodeParser(),
|
|
],
|
|
);
|
|
}
|