src/Markdown.php
protected function getObjectTypeByContent($lineContent, $lineNumber)
    {
        if (empty($lineContent) || trim($lineContent) === '') {
            return BlockTypes::BLOCK_EMPTY;
        }

        if ($this->getAvailableTypesByContent($lineContent) === false) {
            return BlockTypes::BLOCK_PARAGRAPH;
        }

        $blockPlugins = $this->factory->getBlockPlugins();
        $possibleTypes = $blockPlugins[$lineContent[0]];

        foreach ($possibleTypes as $type) {
            $blockObject = $this->factory->create($type);
            if ($blockObject->validateLineType($lineNumber) === true) {
                return $type;
            }
        }

        return BlockTypes::BLOCK_PARAGRAPH;
    }
protected function getObjectTypeByContent($lineContent, $lineNumber)
    {
        if (empty($lineContent) || trim($lineContent) === '') {
            return BlockTypes::BLOCK_EMPTY;
        }

        if ($this->getAvailableTypesByContent($lineContent) === false) {
            return BlockTypes::BLOCK_PARAGRAPH;
        }

        $blockPlugins = $this->factory->getBlockPlugins();
        $possibleTypes = $blockPlugins[$lineContent[0]];

        foreach ($possibleTypes as $type) {
            $blockObject = $this->factory->create($type);
            if ($blockObject->validateLineType($lineNumber) === true) {
                return $type;
            }
        }

        return BlockTypes::BLOCK_PARAGRAPH;
    }
@param string $lineContent
@param int $lineNumber

@return string

@throws \Kisphp\Exceptions\BlockNotFoundException