From 8dcdb5e62415ec7b2ba82a7328a63095f2d841df Mon Sep 17 00:00:00 2001 From: cotw-fabier Date: Wed, 26 Jun 2024 12:52:41 -0400 Subject: [PATCH] Fix Unnecessary Cast --- packages/parchment/lib/src/codecs/markdown.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/parchment/lib/src/codecs/markdown.dart b/packages/parchment/lib/src/codecs/markdown.dart index c067fe24..d1e0a63c 100644 --- a/packages/parchment/lib/src/codecs/markdown.dart +++ b/packages/parchment/lib/src/codecs/markdown.dart @@ -425,7 +425,7 @@ class _ParchmentMarkdownEncoder extends Converter { for (final textNode in node.children) { if (textNode is TextNode) { - handleText(lineBuffer, textNode as TextNode, currentInlineStyle); + handleText(lineBuffer, textNode, currentInlineStyle); currentInlineStyle = textNode.style; } else if (textNode is EmbedNode) { // Import custom extensions for block and inline embeds.