public function yamlFrontMatter($text)
    {
        list($text, $frontmatter) = $this->extractFrontMatter($text, "---\n", "...\n");

        if (!empty($frontmatter)) {
            $frontmatter = $this->yamlParse("---\n$frontmatter...\n");
        }

        return [
            "text" => $text,
            "frontmatter" => $frontmatter
        ];
    }
public function yamlFrontMatter($text)
    {
        list($text, $frontmatter) = $this->extractFrontMatter($text, "---\n", "...\n");

        if (!empty($frontmatter)) {
            $frontmatter = $this->yamlParse("---\n$frontmatter...\n");
        }

        return [
            "text" => $text,
            "frontmatter" => $frontmatter
        ];
    }
public function yamlFrontMatter ( $ text ) { list ( $ text , $ frontmatter ) = $ this -> extractFrontMatter ( $ text , "---\n" , "...\n" ) ; if ( ! empty ( $ frontmatter ) ) { $ frontmatter = $ this -> yamlParse ( "---\n$frontmatter...\n" ) ; } return [ "text" => $ text , "frontmatter" => $ frontmatter ] ; }
Extract YAML front matter from text.

@deprecated since 1.2, replaced with filter\Frontmatter.

@param string $text the text to be parsed.

@return array with the formatted text and the front matter.
Extract YAML front matter from text .