Skip to content

Commit

Permalink
fix:quote block element return quotenode
Browse files Browse the repository at this point in the history
  • Loading branch information
alihassan143 committed Jun 11, 2023
1 parent 4299914 commit b7c3503
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/src/plugins/html/html_document_decoder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,9 @@ class DocumentHTMLDecoder extends Converter<String, Document> {

Node _parseBlockQuoteElement(dom.Element element) {
final (delta, nodes) = _parseDeltaElement(element);
return Node(
type: QuoteBlockKeys.type,
return quoteNode(
delta: delta,
children: nodes,
attributes: {ParagraphBlockKeys.delta: delta.toJson()},
);
}

Expand Down

0 comments on commit b7c3503

Please sign in to comment.