Skip to content

Commit eb73564

Browse files
committed
feat: integate appflowy_editor markdown codec into appflowy
1 parent 76d1267 commit eb73564

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

frontend/app_flowy/lib/plugins/doc/application/share_bloc.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import 'dart:convert';
22
import 'dart:io';
33
import 'package:app_flowy/plugins/doc/application/share_service.dart';
4-
import 'package:app_flowy/workspace/application/markdown/document_markdown.dart';
54
import 'package:flowy_sdk/protobuf/flowy-document/entities.pb.dart';
65
import 'package:flowy_sdk/protobuf/flowy-folder/view.pb.dart';
76
import 'package:flowy_sdk/protobuf/flowy-error/errors.pb.dart';
87
import 'package:freezed_annotation/freezed_annotation.dart';
98
import 'package:flutter_bloc/flutter_bloc.dart';
109
import 'package:dartz/dartz.dart';
11-
import 'package:appflowy_editor/appflowy_editor.dart' show Document;
10+
import 'package:appflowy_editor/appflowy_editor.dart'
11+
show Document, documentToMarkdown;
1212
part 'share_bloc.freezed.dart';
1313

1414
class DocShareBloc extends Bloc<DocShareEvent, DocShareState> {

frontend/app_flowy/packages/appflowy_editor/lib/appflowy_editor.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ export 'src/plugins/markdown/encoder/parser/node_parser.dart';
3939
export 'src/plugins/markdown/encoder/parser/text_node_parser.dart';
4040
export 'src/plugins/markdown/encoder/parser/image_node_parser.dart';
4141
export 'src/plugins/markdown/decoder/delta_markdown_decoder.dart';
42+
export 'src/plugins/markdown/document_markdown.dart';

frontend/app_flowy/pubspec.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,13 @@ packages:
773773
url: "https://pub.dartlang.org"
774774
source: hosted
775775
version: "1.0.2"
776+
markdown:
777+
dependency: transitive
778+
description:
779+
name: markdown
780+
url: "https://pub.dartlang.org"
781+
source: hosted
782+
version: "6.0.1"
776783
matcher:
777784
dependency: transitive
778785
description:

0 commit comments

Comments
 (0)