src/DocumentParser.php
public function parse(string $source): Contracts\Document
    {
        $content = $this->parseContent($source);
        $metadata = $this->parseMetadata($this->parseHeader($source));

        return $this->buildDocument($content, $metadata);
    }
public function parse(string $source): Contracts\Document
    {
        $content = $this->parseContent($source);
        $metadata = $this->parseMetadata($this->parseHeader($source));

        return $this->buildDocument($content, $metadata);
    }
Parse a markdown document with metadata.

@param  string  $source

@return \Kurenai\Contracts\Document