fix: don't include icon while exporting callout to md

This commit is contained in:
Richard Shiue 2025-03-10 11:08:22 +08:00
parent a0ae62d6f5
commit 4e0d9fdb0b

View File

@ -10,7 +10,6 @@ class CalloutNodeParser extends NodeParser {
@override
String transform(Node node, DocumentMarkdownEncoder? encoder) {
assert(node.children.isEmpty);
final icon = node.attributes[CalloutBlockKeys.icon];
final delta = node.delta ?? Delta()
..insert('');
final String markdown = DeltaMarkdownEncoder()
@ -19,7 +18,6 @@ class CalloutNodeParser extends NodeParser {
.map((e) => '> $e')
.join('\n');
return '''
> $icon
$markdown
''';