<?php

namespace App\Domain\Import\Stages;

class NormalizeMarkdown
{
    public function handle(array $payload, \Closure $next): array
    {
        $markdown = (string) ($payload['markdown'] ?? '');
        $payload['markdown'] = trim($markdown);

        return $next($payload);
    }
}
