Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
feat: integate appflowy_editor markdown codec into appflowy
Lucas.Xueb7356474c9d
diff --git a/frontend/app_flowy/lib/plugins/doc/application/share_bloc.dart b/frontend/app_flowy/lib/plugins/doc/application/share_bloc.dartindex 9487350522..eb18257988 100644--- a/frontend/app_flowy/lib/plugins/doc/application/share_bloc.dart+++ b/frontend/app_flowy/lib/plugins/doc/application/share_bloc.dart@@ -1,14 +1,14 @@import 'dart:convert';import 'dart:io';import 'package:app_flowy/plugins/doc/application/share_service.dart';-import 'package:app_flowy/workspace/application/markdown/document_markdown.dart';import 'package:flowy_sdk/protobuf/flowy-document/entities.pb.dart';import 'package:flowy_sdk/protobuf/flowy-folder/view.pb.dart';import 'package:flowy_sdk/protobuf/flowy-error/errors.pb.dart';import 'package:freezed_annotation/freezed_annotation.dart';import 'package:flutter_bloc/flutter_bloc.dart';import 'package:dartz/dartz.dart';-import 'package:appflowy_editor/appflowy_editor.dart' show Document;+import 'package:appflowy_editor/appflowy_editor.dart'+ show Document, documentToMarkdown;part 'share_bloc.freezed.dart';class DocShareBloc extends Bloc<DocShareEvent, DocShareState> {diff --git a/frontend/app_flowy/packages/appflowy_editor/lib/appflowy_editor.dart b/frontend/app_flowy/packages/appflowy_editor/lib/appflowy_editor.dartindex 65cfb7c2f0..750ba6c689 100644--- a/frontend/app_flowy/packages/appflowy_editor/lib/appflowy_editor.dart+++ b/frontend/app_flowy/packages/appflowy_editor/lib/appflowy_editor.dart@@ -39,3 +39,4 @@ export 'src/plugins/markdown/encoder/parser/node_parser.dart';export 'src/plugins/markdown/encoder/parser/text_node_parser.dart';export 'src/plugins/markdown/encoder/parser/image_node_parser.dart';export 'src/plugins/markdown/decoder/delta_markdown_decoder.dart';+export 'src/plugins/markdown/document_markdown.dart';diff --git a/frontend/app_flowy/pubspec.lock b/frontend/app_flowy/pubspec.lockindex 2711b7651d..9c2201954d 100644--- a/frontend/app_flowy/pubspec.lock+++ b/frontend/app_flowy/pubspec.lock@@ -773,6 +773,13 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "1.0.2"+ markdown:+ dependency: transitive+ description:+ name: markdown+ url: "https://pub.dartlang.org"+ source: hosted+ version: "6.0.1"matcher:dependency: transitivedescription: