private function formatDoc(string $doc, bool $indent = false): array
    {
        $doc = explode("\n", $this->htmlToMarkdown->convert($doc));

        if ($indent) {
            $count = count($doc);
            for ($i = 1; $i < $count; ++$i) {
                $doc[$i] = self::INDENT.$doc[$i];
            }
        }

        return $doc;
    }
private function formatDoc(string $doc, bool $indent = false): array
    {
        $doc = explode("\n", $this->htmlToMarkdown->convert($doc));

        if ($indent) {
            $count = count($doc);
            for ($i = 1; $i < $count; ++$i) {
                $doc[$i] = self::INDENT.$doc[$i];
            }
        }

        return $doc;
    }
private function formatDoc ( string $ doc , bool $ indent = false ) : array { $ doc = explode ( "\n" , $ this -> htmlToMarkdown -> convert ( $ doc ) ) ; if ( $ indent ) { $ count = count ( $ doc ) ; for ( $ i = 1 ; $ i < $ count ; ++ $ i ) { $ doc [ $ i ] = self :: INDENT . $ doc [ $ i ] ; } } return $ doc ; }
Converts HTML to Markdown and explode.
Converts HTML to Markdown and explode .