diff --git a/tests/Transformers/BardTransformerTest.php b/tests/Transformers/BardTransformerTest.php
index 985ea1c..59605c9 100644
--- a/tests/Transformers/BardTransformerTest.php
+++ b/tests/Transformers/BardTransformerTest.php
@@ -83,6 +83,29 @@ public function it_converts_html_to_prosemirror()
]], $output);
}
+ #[Test]
+ public function it_handles_text_without_paragraph_tags()
+ {
+ $transformer = new BardTransformer(
+ import: $this->import,
+ blueprint: $this->blueprint,
+ field: $this->field,
+ config: []
+ );
+
+ $output = $transformer->transform(<<<'HTML'
+
Blah blah
+Nam voluptatem rem molestiae cumque doloremque. Saepe animi deserunt Maxime iam et inventore. ipsam in dignissimos qui occaecati.
+HTML);
+
+ $this->assertEquals([
+ ['type' => 'heading', 'attrs' => ['level' => 2, 'textAlign' => 'left'], 'content' => [['type' => 'text', 'text' => 'Blah blah']]],
+ ['type' => 'paragraph', 'content' => [
+ ['type' => 'text', 'text' => 'Nam voluptatem rem molestiae cumque doloremque. Saepe animi deserunt Maxime iam et inventore. ipsam in dignissimos qui occaecati.'],
+ ]],
+ ], $output);
+ }
+
#[Test]
public function it_handles_images()
{