public function getAttributesFromFrontmatter($value)
    {
        $found = preg_match($this->pattern, $value, $matches);

        if (1 === $found) {
            return $this->getAttributesFromString($matches[1]);
        }

        return [];
    }