Skip to content

Commit

Permalink
Make it more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 29, 2025
1 parent e516874 commit c318e69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Transformers/BardTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ public function transform(string $value): array
$value = WordPress::wpautop($value);
}

$value = collect((new BardAugmentor($this->field->fieldtype()))->renderHtmlToProsemirror($value)['content'])
$value = (new BardAugmentor($this->field->fieldtype()))->renderHtmlToProsemirror($value)['content'];

$value = collect($value)
->map(fn ($child) => $this->mapProsemirrorNodes($child))
->filter()
->all();
Expand Down

0 comments on commit c318e69

Please sign in to comment.